I tried to place a GTC market order when market is closed, by using the SET_ORDERTYPE command. Based on the documentation, the order will be submitted as soon as the market is open.
However, when testing my code during closed hours, the following error occur. Obviously, I can't submit order during closed hours, but I am not sure if my GTC order is being placed or not.
[361: Tue 24-07-09 10:21] (98.950)
Warning 075 (HE_N::L) - can't open 1@0.0 at 10:21:01
Here is my code:
function run()
{
brokerCommand(SET_ORDERTYPE,2);
TickTime = 500;
StartDate = 1984;
LookBack = 105;
BarPeriod = 1440;
Fill = 3;
enterLong(1);
}