Topic: Exit Time
Repository link: Exit Time
The Exit Time indicator can be used as a Closing Logic Condition together with Bar Closing indicator and other exit filters. It allows you to specify an Exit Time with hours and minutes.
When the current bar Close Time becomes equal to the specified time, the strategy closes the current position at Bar Closing.
The exit time must correspond to the time frame in order to be possible the bar's Close to happen at the specified time.
This indicator is useful if you have a strategy with closing logic conditions, but you want also to close the position at the end of the day. In that case, you can set Exit Time = 24:00 or other hour (Ex. 17:00, 23:30, ...)
* The indicator always uses the MT server time.
* Prevent trading after the close - if you want to prevent opening of new positions, after the Exit Time close, you have to restrict the entry by using a proper entry filter indicator. For example: Entry Hour, Entry Time...
* Be aware of the Friday closing. This indicator sets one and the same closing time for all weak days. You have to close your position manually on Friday or by using other means.