How to oscillate a balance of 5 forex pairs

 

What can i use to have a balance of 5 forex pairs in one simple line?

Thank you very much

 

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.

Reason: