Our Approach for Optimizing a Forex Portfolio

Why It Is Necessary to Adjust the Individual Strategies in a Portfolio

Given that strategies have different risks and may be correlated with each other, the question arises as to why it is necessary to adjust the individual strategies in a portfolio to each other.

Optimal Weighting of Strategies in the Portfolio

An appropriate portfolio comprises several different strategies or signals (where a strategy corresponds to a signal) based, for example, on different set files or expert advisors. These signals complement each other in such a way that profit is maximized while the risk of losses is minimized, i.e. that the portfolio has the highest possible profit-risk ratio. However, each strategy has a different probability of losses and profits and should ideally be optimally adjusted by the lot size. We refer to the corresponding adjustment or change in lot size as the weighting of a strategy. As an example in figure 1, the strategy in blue (lot size = 0.01) was weighted with a factor of 2 using the lot size, the result is the strategy in orange (lot size = 0.02), which has a double profit and a double drawdown.

Our Approach for Optimizing a Forex Portfolio | weighting of a strategy
Figure 1: Weighting of a strategy

But how do you ensure that the weighting of all strategies in the portfolio is optimal? In other words, how are the different strategies weighted among each other in order to achieve the highest possible profit/risk ratio of the overall portfolio? There are several approaches to this. A simple possibility would be to use the drawdown, i.e. the maximum decline in profits of each strategy, to adjust the weighting of the strategies to each other. However, statistically speaking, this approach would not make sense. For example, a strategy with a larger drawdown (Figure 2 (a)) may be more appropriate than a strategy with a large number of declines (Figure 2 (b)), which may be slightly smaller, but are similar in size to the drawdown of the other strategy. Thus, the strategy in Figure 2 (a) would probably be preferable.

Our Approach for Optimizing a Forex Portfolio | drawdown of signal 1
Figure 2 (a): Drawdown of a strategy
Our Approach for Optimizing a Forex Portfolio | drawdown of signal 2
Figure 2 (b): Drawdown of a strategy

This means that not only the size of the profit decline is important, but also its frequency or, in terms of statistics, its probability of occurrence. In deriving a method we favor, we follow the only two rules of Warren Buffett:

Rule No. 1: Never lose money.
Rule No. 2: Never forget rule No. 1.

Now one must add that an investment without calculated losses is unrealistic, or even impossible. Rather, this quote leads us to put the focus on the possible and calculated loss as the key point for weighting the strategies of a portfolio. As we find, the downside deviation, which is used in the calculation of the Sortino ratio, is a very good way to characterize the risk of loss of a strategy.

Downside Deviation

The Downside deviation (or Target downside deviation, TDD) is the standard deviation of negative asset return and is calculated mathematically as follows, where T is the Desired Target Return of the respective strategy and is set to zero for reasons of comparability.

Our Approach for Optimizing a Forex Portfolio | downside deviation equation

The downside deviation thus characterizes the risk that the strategy will show a loss, the greater the TDD, the greater the probability of a loss. For example, the orange strategy in Figure 1 has twice the TDD compared to the blue strategy because the two strategies are identical except for the weighting (orange corresponds to double the weighting of blue).

Disadvantage of Normalizing All Strategies in a Portfolio to Downside Deviation

Once all strategies have been normalized, the portfolio is no longer dependent on which strategies are the "driving force", i.e. which strategies show the greatest performance in terms of e.g. Return/Drawdown ratio or Calmar ratio. This is because now all strategies do not influence the portfolio depending on their performance but only on their downside deviation. Therefore, it is possible that the portfolio will show worse results in terms of Return/Drawdown ratio and Calmar ratio after optimization. If this should happen, this is acceptable as we want to strictly follow the two rules of Warren Buffett (see above).

Downside deviation – a measure of risk

We believe risk-adjusted returns are one of the most important measures to consider since more return can always be earned by taking more risk. We use the Downside deviation (which is used in the Sortino ratio) to measure the risk and normalize the trading systems.

Sortino Ratio

While the downside deviation characterizes the risk of loss it says nothing about the profitability of a strategy. We can adjust the weighting via the lot size so that the TDD is large, but this also increases the profit in the same proportion. A strategy with a very large TDD can still be very profitable if the profit is also large. And a strategy with a very small TDD can be correspondingly unprofitable if the profit is very small. That is why it is so important to look at the risk of losses and not at the profit when weighting the strategies. The profitability can be calculated using the Sortino ratio, where a higher Sortino ratio means a higher profitability of the strategy. For example in figure 1 both strategies have the identical Sortino ratio.

Sortino ratio – a measure of performance

While the Sharpe ratio is definitely the most widely used measure of risk-adjusted performance, it is not without its issues and limitations. We believe the Sortino ratio improves on the Sharpe ratio in a few areas and is a better tool to measure a trading system. Therefore we mainly focus on the Sortino ratio as a measure of performance.

Correlation Between Strategies

Furthermore, the correlation between the strategies must be considered. For this purpose the correlation between all strategies is calculated and summed up. The reciprocal value of this calculated correlation is called the Independence factor (IF) and describes how independent the strategies are from each other. The greater the independence factor, the more independent the strategy is from all other strategies in the portfolio.

Consider the correlation

The correlation between the strategies must be considered. We use the Independence factor to show how independent the strategies are from each other.

Flowchart of Our Approach for Optimizing a Portfolio

The considerations already made are summarized in the flowchart below.

Our Approach for Optimizing a Forex Portfolio | flowchart

Example of Improved Portfolio Performance

As an example, we perform a backtest of the Belkaglazer Exper Advisor, analyze its results and show the optimized portfolio performance.

Raw Backtest Results (MetaTrader 5)

The seller provides a very large number of setfiles on his own website. We have decided to make a small selection based on performance. The backtests were performed with MetaTrader 5 between 2012.01.01 – 2020.08.14. Occurring anomalies (e.g. missing ticks for specific time periods) were analyzed with the Quant Analyzer 4 from StrategyQuant. Based on this analysis all further signal processing and statistical analysis were performed with Matlab from MathWorks.

The results can only be viewed properly on high resolution screens. Please also note how we backtest Expert Advisors.

Click on one of the tabs below to open the corresponding backtest

Analysis Results

The lower table shows the calculated parameters. It is clearly visible that the Sortino ratio as well as the Downside deviation vary strongly and two strategies show a high correlation.

SetfileSortino RatioDownside DeviationIndependence Factor

Evaluation and Performance of Single Strategies

The two following figures show the single strategy results with unweighted performance results (left) and results modified taking into account the Downside deviation and the Independence factor (right). Due to the normalization the final balances in the right curve are irrelevant and not comparable to the left curve. What counts is that the balance sheets with higher risk and higher correlation are weighted lower (right figure).

Our Approach for Optimizing a Forex Portfolio | Balance of single strategies
Our Approach for Optimizing a Forex Portfolio | Balance of single strategies norm ind

Improvement of the Portfolio Performance

The two following figures show the portfolio balance with unchanged performance results (left) and results modified taking into account the risk and independence factor (right). Due to the normalization the final balance of the right curve is irrelevant, what counts are the slightly smoother curve and the statistics.

Our Approach for Optimizing a Forex Portfolio | Balance of portfolio
Our Approach for Optimizing a Forex Portfolio | Balance of portfolio norm ind

Final Statistical Results of the Portfolio

Using the method described above, a significant improvement of more than 120% of the Sortino ratio can be observed.

Portfolio related factors (on monthly basis)UnweightedWeightedImprovement
Sortino ratio5.011211.0886121.3 %
Return/Drawdown ratio53.287673.13937.3 %
Calmar ratio0.585580.8037337.3 %

Weighted: Downside Deviation and Independence factor

Traders Comments
Notify of

Inline Feedbacks
View all comments


Could you perhaps explain the workflow for Weighing strategies?


seems like the trading bot is no longer available for purchase maybe update the page?

There will be moderation of all comments. Please also read our comment rules:

For open discussion, we reserve the right to delete any comment that is not directly on topic or has the sole purpose of disparaging readers or authors. We want people to communicate respectfully with each other, as if the discussion were with real people present. By submitting this form you agree to our Privacy Policy and the storage of your personal data.

Please note:

Be careful with recently released Expert Advisors

Avoid dangerous strategies

How to detect and avoid Expert Advisor scams.
Would love your thoughts, please comment.x