I am getting an error message in the log for a buy stop order saying:
Buy order placed at (time) has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and ... Please fix your strategy.
But the buy stop order is correct:
if (FirstTickOfBar
…
EnterLongStop(High[0],"Buy A");
Now, Close[0] does equal High[0]. So the next bar should buy it right away.
I'm not sure why it is ignoring it all together, that doesn't make sense.
I am in backtesting mode. Is this a bug?
Thx

Comment