I have a strategy that when I backtest, it runs fine, however when I forward test it on SIM, I get errors (see attached) and the strategy gets cancelled.
The following portion of the code is the "order part" of the code after certain criteria has been met:
double bid2 = Swing(3).SwingHigh[0];
if (usetarget1) entryOrderT1 = EnterLongStop(orderSize1, bid2 + 1 * TickSize, "LongTgt1");//EnterLong(1,"LongTgt1");
What my intention is, is to go long just above the swing high once the criteria has been met, what could I change to avoid this error?
Thanks,
John
Comment