Some Eas use the Enter/reverse at Market Feature.
I limited the trades for a day to 1. But the Ea made two trades for example.
For Mt4 this feature works correctly. But on MT5 the trades are different.
I have written an pdf document to deceipe this problem excactly. I attached one strategy, the settings and the mt4/5 logfiles.
I attached the EA EURUSD H1 240114181.sqx.
I think Mt4 is more stable, but in Mt5 are some problems with this feature.
I hope you can find this problem if you analyse the logfiles.
thomas
Attachment M4 EURUSD H1 240128215.sqx added
Attachment Retest.cfx added
Attachment SQX_Backtest_Pepper_realtick_realspread.png added
Attachment trades on pepper realaccount.png added
Attachment trades on pepper realaccount_myfxbook.png added
Attachment Trades overview Mt4 Mt5.png added
On Mt4 every Ea open only one trade per day. On MT5 the eas open 1-2 Trades per day.
Attachment 5M EURUSD H1 240205229.sqx added
Attachment 5M EURUSD H1 240205230.sqx added
Attachment 5M EURUSD H1 240205231.sqx added
Attachment 5M EURUSD H1 240205232.sqx added
Attachment 5M EURUSD H1 240205233.sqx added
Attachment 5M EURUSD H1 240205234.sqx added
Attachment 5M EURUSD H1 240205235.sqx added
CMaxTradesPerDay -function in the mql5-code
I have the same problem with different Eas. The trades are limited to 1 but the Ea made more trades per day.
I will attach the EA with name M4 EURUSD H1 240128218.mq5
This happens only on metatrader5
-----------------
class CMaxTradesPerDay : public CTradingOption {
private:
datetime openTimeToday;
datetime EODTime;
bool reachedLimitToday;
public: