MT5 - EA: Maximum Orders Reached

 

Hi,

I'm a newbie to MT5 and ran into a problem while backtesting. Every time I run a backtest the last position kills my backtest-balance by not exiting at predefined stop-loss. The message I get in the journal is "Order not sent, maximum reached". In the Strategy Tester/Trade Settings/Trading - there's a way to override this and add unlimited orders and positions (by ticking "use custom settings" under the commissions tab). However, that does still not solve the issue.

Does anyone have any clue of how to solve this? I could not find any reference of this online.

Cheers,

Erik

Reason: