Subject changed from End of Day Exit Time/ Exit At End Of Range in Build Options doesn't work (Code Type: EasyLanguage). to [116]End of Day Exit Time/ Exit At End Of Range in Build Options doesn't work (Code Type: EasyLanguage).
Status changed from New to Refused
In TS/MC is is handled by calling SetExitOnClose - you cannot specify the exact time there, it will close automatically at the end of daily session.
Exit time configuration is there only because MT4/MT5 don't have this automatic functionality and we have to set an exact time to check and close the orders.
I highly recommend SQ should fix this problem because MC/TC user needs closing the position at the exact time before the closed time of day.
(The code should like this: "If Time >= 1600 then Buytocover/Sell next bar at market;" )
For example, the FTSE China A50 Futures in SGX trading time is 09:00 to 16:30.
If just use SetExitOnClose, MC/TC will not close the position.
Because there is no ticks comes in after 16:30 and the Order will not be sent to the broker too.
The signal will show on the chart till the first ticks of next day.
The SetExitOnClose always use in the Last trading day.
For example, the FTSE China A50 Futures in SGX will close at 14:20.
The broker will close the position automatically.
Finally, I think situations from MC/TC user needs to close the position before closed time is like to MT4/MT5 should close the position on Friday.
Our common goal is to avoid the gap risk from the market.
The different is MC/TC user always trade the Futures which is not continuous time but MT4/MT5 user trade the Forex always 24 hours continuous.
Status changed from Refused to Fixed
I totally agree with Randy, this is very important to futures traders to close all positions for EOD and EOF strategies.
or an option to close all positions at TF's last bar of session at open for EOD and EOF.
It works in a way that you CAN specify exit time for exit at end of day or on Friday.
Strategy will exit at this specified time if the real session is longer, or it will exit at end of session using SetExitOnClose .