very different results between SQ and MT4

Mark - i see some very different results between SQ and MT4.  This is a single time frame strategy.  Take a look at the attached image which shows SQ and MT4.

I also attached the file. 
SQ = 483 trades.  MT4 = 162 trades.
Profit is very different.
Profit factor is very different.

Attachments
Strategy 01013.sq4
(148.47 KiB)
results.jpg
(394.15 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

j
#1

jmtc1230

19.05.2018 05:13

Task created

TB
#2

Tomas Brynda

24.05.2018 09:46

Status changed from New to In progress

Attachment screenshot.png added

I tested the attached strategy and the results between SQ and MT4 were matching. 


It is true that this strategy works on a single chart, but some conditions contain daily values. Moreover, they use a huge shift - please see the attached screenshot.

If you perform backtest on your own data in MT4, you must also import D1 timeframe values. Otherwise the daily values will be computed as 0, because MT4 is not able to compute higher timeframes automatically. At first I didn't realize that and I had very few trades in MT4. 


Concerning the huge shift, please check if you have enough history data available before the start date of the test.

TB
#3

Tomas Brynda

25.05.2018 08:07

Status changed from In progress to Fixed


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