SQ 4.138 Enter/reverse at Market Feature working not correkt under MT5

Hallo I have installed a portfolio of some Eas on 5 Tickmill and one Pepperstone Account.

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 

Attachments
logs_mt4_real.rar
(5.78 KiB)
EnterReverseAtMarket.pdf
(1.25 MiB)
logs_mt5_life.rar
(17.54 KiB)
logs_Mt5_fast vps tickmill.rar
(10.82 KiB)
EURUSD H1 240114181.mq4
(231.30 KiB)
Build strategies.cfx
(37.36 KiB)
EURUSD H1 240114181.sqx
(45.03 KiB)
logs_mt5demo.rar
(16.25 KiB)
logs_mt5_pepper_life.rar
(17.94 KiB)
EURUSD H1 240114181.mq5
(242.84 KiB)
logs_mt4demo.rar
(5.74 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

t
#1

tnickel

19.01.2024 19:19

Task created

t
#2

tnickel

01.02.2024 13:12

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

trades on pepper realaccount.png
(46.05 KiB)
SQX_Backtest_Pepper_realtick_realspread.png
(410.22 KiB)
Retest.cfx
(37.54 KiB)
trades on pepper realaccount_myfxbook.png
(196.38 KiB)
M4 EURUSD H1 240128215.sqx
(15.03 KiB)
I think the problem is in the 

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:

t
#3

tnickel

05.02.2024 16:00

Attachment Trades overview Mt4 Mt5.png added

Trades overview Mt4 Mt5.png
(795.59 KiB)
I have installed the same Eas on different Brokers. 

On Mt4 every Ea open only one trade per day. On MT5 the eas open 1-2 Trades per day. 


t
#4

tnickel

05.02.2024 16:01

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

5M EURUSD H1 240205234.sqx
(44.41 KiB)
5M EURUSD H1 240205230.sqx
(43.83 KiB)
5M EURUSD H1 240205229.sqx
(43.62 KiB)
5M EURUSD H1 240205231.sqx
(42.47 KiB)
5M EURUSD H1 240205235.sqx
(43.70 KiB)
5M EURUSD H1 240205233.sqx
(33.90 KiB)
5M EURUSD H1 240205232.sqx
(41.71 KiB)
For this example I used this eas

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please