I got this error with a strategy processing each incoming tick. I attach 3 screenshots: with error messages, with orders and zoomed in chart.
The error occurred at bar ending at 15.07.2015 03:05. The stop loss is set so that it corresponds to a 0.25 price offset.
As I understand first EnterShort is submitted at 569.50 (Open price). The corresponding Buy stop is submitted at 569.75 (High price). Then the next EnterShort is submitted at 569.00. The corresponding Buy stop is submitted at 569.25 and it happens to be below the market. Maybe because the price at the current tick is greater than 569.25?
Now I have some questions regarding this situation:
I see in the error message that "strategy attempted to close the position". Is always Exit order sent before the strategy terminate itself?
Is there any way to avoid this termination?
Thanks,
Valentin

Comment