In the last few days I sometimes get the following error: "Stop price can't be changed below the market".
I get the fact that the stop loss price must be below the current market price but I set a trailing stop using the managed approach.
This is the code that sets the new trailing stop loss:
SetTrailStop(signalName, CalculationMode.Ticks, newTrailingStop, false);
I logged the newTrailingStopLoss and it's a positive number so that's not the problem.
I just don't understand how is it that if I tell ninja to set the stop loss in ticks and in my case it's 13, how is it possible that I'm getting this error message?
I hope not but I think it's a bug in the platform...
I would really appreciate any help resolving this problem, thanks in advance
Comment