Support for trading MultiTF strategies merged to one

I had merged and split the same EA in the demo account, but after a few days of trading there were completely different results. No trade was opened in the split account, and 7 trade was already closed in the merged account...


2 identical accounts, Darwinex-demo, are used.


Split:

MT4 Server

Darwinex-Demo (demoUK.darwinex.com)

MT4 Login

2088982516

Investor Password

wfx6qxy


Merged:

MT4 Server

Darwinex-Demo (demoUK.darwinex.com)

MT4 Login

2088982518

Investor Password

ao2krkn

Attachments
Desktop.zip
(3.87 MiB)
  • Votes +7
  • Project StrategyQuant X
  • Type Feature
  • Status New
  • Priority Normal

History

Rr
#1

Partizanas

20.05.2020 11:32

Task created

h
#2

hankeys

20.05.2020 12:20
Voted for this task.
h
#3

hankeys

20.05.2020 12:20
merging is still in diapers :D
o
#4

Enric

10.06.2020 08:27
Voted for this task.
TB
#5

Tomas Brynda

17.06.2020 10:10

Status changed from New to Fixed

h
#6

hankeys

20.09.2020 09:07

Attachment Saved Portfolio.zip added

Attachment EU_15_111511942_S_HA_CF_SQ3-MM_EQ___BTvsBT.png added

Attachment EU_H1_110134178_S_BB_CF_SQ3-MM_EQ___BTvsBT.png added

Attachment EU_H4_110401842_S_LL_CF_SQX-MM_EQ___BTvsBT.png added

Attachment EU_H4_110417185_S_HH_CF_SQ3-MM_EQ___BTvsBT.png added

Attachment PORTFOLIO___BTvsBT.png added

EU_H4_110401842_S_LL_CF_SQX-MM_EQ___BTvsBT.png
(29.88 KiB)
Saved Portfolio.zip
(3.13 MiB)
EU_15_111511942_S_HA_CF_SQ3-MM_EQ___BTvsBT.png
(28.42 KiB)
EU_H4_110417185_S_HH_CF_SQ3-MM_EQ___BTvsBT.png
(29.68 KiB)
EU_H1_110134178_S_BB_CF_SQ3-MM_EQ___BTvsBT.png
(31.70 KiB)
PORTFOLIO___BTvsBT.png
(28.93 KiB)
B129 not fixed - backtest for merged portfolio is totally different


individual EQ curves are the same, but merged one is not - direction is holding, but performance is out

h
#7

hankeys

19.11.2020 12:43

anyone with some progress about this feature?

can we really use it for our real trading, trading more TFs, more markets together?

what are the limitations?

what tests has been made before it was implemented to SQX?

i have tested in B130 – tried portfolio of 5 strats for the same market and same TF (5x EURUSD H1 strats) and seems that its working in the backtest will if i put it on EURUSD H1 market, can this merged strategy really be putted on whatever TF or market? or how its working…

and if i want to put more TFs together like M15+M30+H1+H4 on what TF should i put the merged EA? because if put the above portfolio to a different TF, so for example to M30 or H4 i am getting different backtest in Tick Data Suite – and its i think obvious, because every condition should be evaluated on bar close

so should be also different TFs merged together?

h
#8

hankeys

19.11.2020 12:43

from monday i started with 3 demo accounts – 5 strats each merged to one portfolio MQL file

ptf1 – 5x EURUSD H1, putted to EU H1 market

ptf2 – EURUSD only TF M15-H4, putted to EU M15 market

ptf3 – 5markets (EU, GU, GJ, EJ, UJ), H1 only – putted to EU H1 market

so we will see how its trading after some time

first find – ptf 2 where are also H1 or H4 strats, which is putted to M15 TF – the pending orders for H1 strats have open time for example 8:15, so it seems that evaluation of conditions is not made on H1 TF, but still on M15 TF

TB
#9

Tomas Brynda

19.11.2020 13:02
It doesn't matter on which chart or timeframe you run the EA, because all the symbol and timeframe settings are amongst the EA's parameters.


There is a limitation in trading options and money management. The whole portfolio uses the same MM method and TO.

So first you should unify the MM and TO settings in the strategies the portfolio is made of to be able to compare the individual strategies and merged portfolio results.

h
#10

hankeys

19.11.2020 13:42

Attachment merge.jpg added

merge.jpg
(68.31 KiB)
ad ptf2)


if this is true, how H1 strategy in merged portfolio could open pending order on 9:15 for example?


and if i look now i know from magicnumber, that H1 strats have opened pending orders in 13:30? its evaluated in M15 TF as it was putted to EU M15 market and TF


and second - if i make backtest of merged H1 strats in Tick Data Suite and choose TF in MT platform as M15, or M30 or H4 i am getting always a different backtest

TB
#11

Tomas Brynda

19.11.2020 14:02

Status changed from Fixed to In progress

I noticed there is a problem with multiTF strategies inside the portfolio.

There is currently one catch - the bar open recognition is tied to the timeframe of the symbol the EA is running on.


So right now the portfolio will work only for the strategies using the same timeframe.

I will look more deeply into this and try to solve the problem


h
#12

hankeys

19.11.2020 14:12

Status changed from In progress to Fixed

and some simple ones - MQL code header


//| EJ_H1_200134181_S_TE_CF_SQX-MM EA

//|

//| Generated by StrategyQuant X Build 130 at 11/15/2020 16:56

//|  

//| Backtested on ?? / ??, ?? - ?? 


first line - name of the 1. strategy in the portfoliou - should be name of "portfolio" from line of the databank - its confusing

line backtested on - new in B130 - not functional, only question marks


and important is this 


extern string CustomComment = "EJ_H1_200134181_S_TE_CF_SQX-MM";


comment for merged strategy is from the first strategy also - shoulg be also the name of the "portfolio" - or maybe better the comment should be for every strategy


k
#13

Karish

19.11.2020 14:52
Voted for this task.
JH
#14

Jabezz

20.11.2020 11:52
Voted for this task.
b
#15

beppil

22.11.2020 10:04
Voted for this task.
h
#16

hankeys

27.11.2020 11:19
please reopen this task, because in dev2 the solution for different TF strats is not solved
TB
#17

Tomas Brynda

27.11.2020 11:31

Subject changed from split and merged strategy totally diferent trading to Support for trading MultiTF strategies merged to one

Type changed from Bug to Feature

Status changed from Fixed to New

b
#18

bentra

03.12.2020 07:02
Voted for this task.

Votes: +7

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please