If at the moment that strategy should exit, VPS which strategy is running on, is off, (e.g. for update, lack of power, etc.) then when it is powered on again, the strategy won't exit the trade forever.
it seems you used such a thing for comparison:
Status changed from New to Fixed
Attachment image-0.png added
Attachment 1.png added
Attachment 2023-06-26.png added
This strategy has a exit after 70 bars.
It's H1, So it means near 3 days.
Today is 2023-06-26.
Order is opened at 2023-06-20 !
Also it is not just limited to this strategy.
I encountered this problem frequently.
It seems if at the point that strategy should exit, server is off, then exit does not work.
Alex,
we have tested multiple strategies with ExitAfterBars enabled and in all cases trades were exited correctly even after MT5 was switched off and started up later.
If you want us to further test please describe as much details as possible how it happened on your side and please attach the strategy (both sqx and mql files)