what to use to display it? make an indicator that calculates and plots the combination into an indicator window (or an offline chart). You will have to write one yourself, I don't know of anybody (besides me) who has ever done this so it will be hard to find any code that already does what you want. You can look at one of the indicators that calculate currency indexes (like the yen or dollar index) for an inspiration and for some technical details that you will need.
what to use to find the optimal weights? Linear regression might be useful. R or Matlab have functions for this. I recommend R because it is free. Both can be directly called from mql4 if you install the interface libraries, use google to find them.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
What can i use to have a balance of 5 forex pairs in one simple line?
Thank you very much