I have implemented intraday strategies on NT, they are fine. Now I have a E-Mini strategy with day frequency, I can't get the following code to place a live order. It just turns yellow.
if( ToDay(Time[0])>=20141111 ){
entryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Market, origSize, 0, 0, "", sigName);
Println( "day and time: " + Time[0] );
}
In Initialize(), I have
CalculateOnBarClose=true;
Unmanaged=true;
In NT options, I have "wait until flat before executing live".
Thank you
Comment