[Build 111] MQ4 trading results full of errors, backtest not matching to SQ

Hi,



please see the attached screenshot which shows a strategy which was export from SQ X to MQ4 code. The equity curve is pointing steadily down in MT4 most likely because of these errors that run in the log all the time:





2018.10.11 03:51:48.843 1992.03.13 07:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 07:00 ---------------------------------- 2018.10.11 03:51:48.843 1992.03.13 07:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 07:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.843 1992.03.13 07:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 07:00 Opening order type SELL STOP with price 1.2092. Current market prices: 1.20922 / 1.2092 2018.10.11 03:51:48.843 1992.03.13 07:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 07:00 Not found time From 2018.10.11 03:51:48.841 1992.03.13 07:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 07:00 Not found time From 2018.10.11 03:51:48.839 1992.03.13 06:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 06:00 ---------------------------------- 2018.10.11 03:51:48.839 1992.03.13 06:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 06:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.839 1992.03.13 06:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 06:00 Opening order type SELL STOP with price 1.2105. Current market prices: 1.21052 / 1.2105 2018.10.11 03:51:48.839 1992.03.13 06:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 06:00 Not found time From 2018.10.11 03:51:48.838 1992.03.13 06:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 06:00 Not found time From 2018.10.11 03:51:48.836 1992.03.13 05:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 05:00 ---------------------------------- 2018.10.11 03:51:48.836 1992.03.13 05:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 05:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.836 1992.03.13 05:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 05:00 Opening order type BUY STOP with price 1.20762. Current market prices: 1.20762 / 1.2076 2018.10.11 03:51:48.836 1992.03.13 05:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 05:00 Not found time From 2018.10.11 03:51:48.834 1992.03.13 05:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 05:00 Not found time From 2018.10.11 03:51:48.832 1992.03.13 04:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 04:00 ---------------------------------- 2018.10.11 03:51:48.832 1992.03.13 04:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 04:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.832 1992.03.13 04:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 04:00 Opening order type BUY STOP with price 1.20612. Current market prices: 1.20612 / 1.2061 2018.10.11 03:51:48.832 1992.03.13 04:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 04:00 Not found time From 2018.10.11 03:51:48.830 1992.03.13 04:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 04:00 Not found time From 2018.10.11 03:51:48.828 1992.03.13 03:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 03:00 ---------------------------------- 2018.10.11 03:51:48.828 1992.03.13 03:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 03:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.828 1992.03.13 03:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 03:00 Opening order type BUY STOP with price 1.20722. Current market prices: 1.20722 / 1.2072 2018.10.11 03:51:48.828 1992.03.13 03:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 03:00 Not found time From 2018.10.11 03:51:48.827 1992.03.13 03:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 03:00 Not found time From 2018.10.11 03:51:48.825 1992.03.13 02:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 02:00 ---------------------------------- 2018.10.11 03:51:48.825 1992.03.13 02:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 02:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.825 1992.03.13 02:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.13 02:00 Opening order type BUY STOP with price 1.20842. Current market prices: 1.20842 / 1.2084 2018.10.11 03:51:48.825 1992.03.13 02:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 02:00 Not found time From 2018.10.11 03:51:48.823 1992.03.13 02:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 02:00 Not found time From 2018.10.11 03:51:48.821 1992.03.13 01:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 01:00 Not found time From 2018.10.11 03:51:48.819 1992.03.13 00:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.13 00:00 Not found time From 2018.10.11 03:51:48.817 1992.03.12 23:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 23:00 Not found time From 2018.10.11 03:51:48.816 1992.03.12 22:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 22:00 Not found time From 2018.10.11 03:51:48.814 1992.03.12 21:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 21:00 Not found time From 2018.10.11 03:51:48.812 1992.03.12 20:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 20:00 Not found time From 2018.10.11 03:51:48.810 1992.03.12 19:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 19:00 ---------------------------------- 2018.10.11 03:51:48.809 1992.03.12 19:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 19:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.809 1992.03.12 19:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 19:00 Opening order type SELL STOP with price 1.2106. Current market prices: 1.21062 / 1.2106 2018.10.11 03:51:48.809 1992.03.12 19:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 19:00 Not found time From 2018.10.11 03:51:48.807 1992.03.12 19:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 19:00 Not found time From 2018.10.11 03:51:48.805 1992.03.12 18:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 18:00 Not found time From 2018.10.11 03:51:48.804 1992.03.12 17:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 17:00 ---------------------------------- 2018.10.11 03:51:48.804 1992.03.12 17:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 17:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.804 1992.03.12 17:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 17:00 Opening order type BUY STOP with price 1.20712. Current market prices: 1.20712 / 1.2071 2018.10.11 03:51:48.804 1992.03.12 17:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 17:00 Not found time From 2018.10.11 03:51:48.802 1992.03.12 17:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 17:00 Not found time From 2018.10.11 03:51:48.800 1992.03.12 16:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 16:00 ---------------------------------- 2018.10.11 03:51:48.800 1992.03.12 16:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 16:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.800 1992.03.12 16:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 16:00 Opening order type BUY STOP with price 1.20522. Current market prices: 1.20522 / 1.2052 2018.10.11 03:51:48.800 1992.03.12 16:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 16:00 Not found time From 2018.10.11 03:51:48.798 1992.03.12 16:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 16:00 Not found time From 2018.10.11 03:51:48.796 1992.03.12 15:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 15:00 ---------------------------------- 2018.10.11 03:51:48.796 1992.03.12 15:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 15:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.796 1992.03.12 15:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 15:00 Opening order type BUY STOP with price 1.21072. Current market prices: 1.21072 / 1.2107 2018.10.11 03:51:48.796 1992.03.12 15:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 15:00 Not found time From 2018.10.11 03:51:48.794 1992.03.12 15:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 15:00 Not found time From 2018.10.11 03:51:48.793 1992.03.12 14:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 14:00 ---------------------------------- 2018.10.11 03:51:48.793 1992.03.12 14:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 14:00 Order with these parameters already exists, cannot open another one! 2018.10.11 03:51:48.793 1992.03.12 14:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: - SQ LOG 1992.03.12 14:00 Opening order type BUY STOP with price 1.20832. Current market prices: 1.20832 / 1.2083 2018.10.11 03:51:48.793 1992.03.12 14:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 14:00 Not found time From 2018.10.11 03:51:48.791 1992.03.12 14:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 14:00 Not found time From 2018.10.11 03:51:48.789 1992.03.12 13:00:00 DELETE 1020 EURUSD H1 EURUSD,H1: 1992.03.12 13:00 Not found time From 2018.10.11 03:51:48.787 1992.03.12 13:00:00 Tester: order #698, buy 1.00 EURUSD is opened at 1.20942



Changing "ModifyInsteadOfReplacing" from false to true makes no difference, same problems in the log. I can´t share this strategy public unfortunately as I trade it day in day out (imported from SQ3 where the MQ4 code that SQ3 exports works just fine).

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

g
#1

geektrader

11.10.2018 03:58

Task created

g
#2

geektrader

11.10.2018 03:58
Voted for this task.
MF
#3

Mark Fric

29.01.2019 08:53

Status changed from New to Waiting for information

do you still experience this also with the newest builds? 

if yes, would you be willing to send us the strategy privately to email, so we can check what is wrong?
g
#4

geektrader

29.01.2019 09:02
I will test this again with Build 118 if that is OK. I think it was fixed in the meantime though. Thanks.
MF
#5

Mark Fric

18.02.2019 13:56

Status changed from Waiting for information to Fixed


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please