MT5 Hedged engine Strategy differences

This strategy performs Significantly differently in the MT5 terminal than in the MT5 hedged engine of SQX. about 25% fewer trades in SQX, all trades are on different days. Performance is kinda similar but not really. I did try amping up the commission to make room for missing SWAP but like I said SWAP differences don't explain the number of trades differences and trading on completely different days etc.

I have the exact (Dukas) data copied right out of sqx and imported to my mt5 terminal. 

I did have to replace this to work around the infinite loop problem but it only kicks in when the market is closed and shouldn't cause any differences.


//REPLACE    sqDeletePendingOrder(orderTicket);          
//WITH  if(!sqDeletePendingOrder(orderTicket)) Sleep(1000);


Performance starts to match up near the end of the sample though....

Attachments
Strategy 18373.sqx
(39.26 KiB)
  • Votes +3
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed, to be tested
  • Priority Normal
  • Assignee tmatejka.
  • Category Backend

History

b
#1

bentra

26.01.2022 02:06

Task created

b
#2

bentra

26.01.2022 02:34
In the MT5 terminal lots of trades between 2018.04.24 through the end of 2018 but in SQX there arent any trades till 2018.12.25....
E
#3

Emmanuel

29.01.2022 14:51
Voted for this task.
DC
#4

anuffi

10.02.2022 04:03
Voted for this task.
o
#5

Enric

12.02.2022 10:31
Voted for this task.
TM
#6

tmatejka.

14.09.2022 18:39

Status changed from New to In progress

as mentioned here https://roadmap.strategyquant.com/tasks/sq4_8623 this is very likely caused by the tick data being in an "incorrect" format for MT5 import. currently the exported data contains not only Bid/Ask prices but also other data such as Last price etc. We are fixing the tick data export now so it matches "bid/ask only" format. after that the best match should be improved. will need to test this once the update for data export is available
TM
#7

tmatejka.

14.09.2022 18:52

Status changed from In progress to Fixed, to be tested

MF
#8

Mark Fric

14.11.2022 10:57

Milestone changed from Build 136 Dev 4 to Build 136 RC 1

TT
#9

Tamas

18.11.2022 11:16

Milestone changed from Build 136 RC 1 to Build 137

MF
#10

Mark Fric

04.04.2023 11:08

Milestone changed from Build 137 to Build 138

MF
#11

Mark Fric

08.12.2023 08:59

Milestone changed from Build 138 to None


Votes: +3

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please