Documentation

Applications

Last updated on April 22, 2020 by Mark Fric

Merge / Split Portfolio

Merge / Split functionality is available as an action above the databank:

Merge / Split Portfolio

 

Merge strategies

Merge strategies can combine multiple individual strategies into one using one of the possible ways. To use it, select a few strategies and choose this option.

It will open this dialog:

Merge strategies, Ensemble systems

You can choose Name of your new merged startegy, by default it is Portfolio. You can also choose to save this new portfolio strategy to another databnk than your actual one in Save to databank option.

There are three types of merging possible:

 

Simulated portfolio

Thsi means that trades of your chosen strategies are merged to one, and portfolio statistics are computed from these merged trades. It simulates how these strategies would trade together – but it considers every strategy to trade independently from the other.

This is an artifical portfolio created only by combining orders of individual strategy components. It cannot be backtested, but it shows portfolio statistics.

 

Strategies merged to one (trading in parallel)

EXPERIMENTAL feature. This type of merge will create one compounded strategy that has trading rules of each of the individual strategies.

It can be used in MetaTrader 4/5 to deploy just this one merged strategy to trade multiple individual “strategies” in parallel. You will be able to specify symbols and timeframes for every individual strategy independently.

Note – trading options (Exit on Friday, Limit Trading Range) are global, they are set for the merged strategy and will be valid for all the individual strategies included. So this type of merge wouldn’t wotrk if you’d want to merge strategies that use different trading options.

 

Ensemble signals

EXPERIMENTAL feature.  A special type of merge that uses one main strategy, and updates its entry conditions with entry conditions from all other selected strategies using a FUZZY logic.

So this sarategy will be trading only if a given % of all entry signals are valid. In theory this has a potential to improve trading results, it depends very much on the actual strategies.

 

 

Split strategies

Split functionality is simple – it splits an existing portfolio created by Merge to its individual components. Note it will work only on portfolios created in SQ Build 127 or newer.

 

Was this article helpful? The article was useful The article was not useful

11 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
kasinath
kasinath
August 20, 2020 9:33 am

Love the merge feature. It works well on MT4.
One issue i have, though, is when I generate the MQ4 for a portfolio of strategies that size lots based on % of account.
When i run a backtest for these combined strategies MT4, i see all that my order lots all have the same size, of 0.1.
Is this expected behaviour?

tomas262
tomas262
Reply to  kasinath
August 26, 2020 10:50 pm

Hi, did you set MM model on the code export? You can choose the required one

Kevin
Kevin
December 4, 2020 9:42 am

When I am merging the strategies, only two as of now, I’m getting an “N/A” for all my data out puts. It isn’t merging the strategies. “Strategies merged into one”, and “initial capital of first strategy”.

I have ran these two strategies though retesting and made sure the passes on “Real Tick” data.

Am I doing something wrong?

tomas262
tomas262
Reply to  Kevin
January 27, 2021 9:44 pm

Which version do you use? Please update to the latest https://www.strategyquant.com/download

Pablo
Pablo
February 9, 2022 10:19 am

Hello SQ team, my question is, can I join strategies with different timeframes? In that case, what timeframe should I put on MT4 as the chart timeframe?
Thanks a lot!😀

tomas262
tomas262
Admin
Reply to  Pablo
February 14, 2022 7:55 pm

You should only merge strategies trading the same timeframe

reza delghandi
reza delghandi
August 2, 2022 11:09 am

hi there is limitation in number of strategy for combine in one strategy??
thanks

tomas262
tomas262
Admin
Reply to  reza delghandi
August 2, 2022 4:51 pm

Hi,
it makes sense to merge only limited number of strategies. The performance goes down fast with increasing number of strategies in a portfolio. We recommend to merge no more than 10 strategies …

reza delghandi
reza delghandi
Reply to  tomas262
August 3, 2022 8:59 am

thanks for you help
if I have daily strategy with few trade you suggest again less than 10 strategy in one portfolio

reza delghandi
reza delghandi
Reply to  tomas262
August 22, 2022 7:52 am

thanks for you help
if I have daily strategy with few trade you suggest again less than 10 strategy in one portfolio
and also I made a portfolio of 10 strategies all same symbol and same Time frame and same option and when I save it for MT4 it generated well and compiled with no error but for back test portfolio it has not any output (strategy one by one back tested successfully and my version is last version)

CJ Kim
CJ Kim
September 19, 2022 1:32 am

Hi, simulated portfolio, both portfolio created by initial_cap & sum, they show exactly same total profit and charts. I don’t quite understand the outcome and your description. would you please elaborate how they are different? otherwise, there must be bugs,