I get the message in the title while testing a strategy on 4 days market replay data. I don't really understand how this is possible nor how to prevent it.
I am using NT8's methods as per tutorial, first i declare
if (State == State.Configure)
{
SetProfitTarget(CalculationMode.Ticks, 8);
SetStopLoss(CalculationMode.Ticks, 4);
}
and then for orders I use:
EnterShort() and EnterLong()
I am attaching the screensot of the error and a snippet of my code.
Can somebody help me out? This has been driving me crazy for the last week!
Thanks a lot!
Comment