Trabajo finalizado
Tarea técnica
Hi, I need an indicator that outputs, as a percentage number on chart, positive or negative (+100 / -100), the amount of similarity/correlation between two charts, given a certain number of bars analyzed (ie. 150).
For example EURUSD would have a negative correlation with USDCHF so the number would be near -100. Instead EURUSD would have a +100 correlation with EURUSD.
First symbol should be the one of the current chart, the second symbol (the one compared with the first) should be settable in settings.
Bars analyzed should be settable in settings (ie.150)
Graphics of indicator should be a writing on chart, with settable corner, XY distance, font size color and character. It should output a writing as for example: "Correlation: +72%" or "Correlation: -34%"
The indicator should work with any symbol in market watch and so with any digits.
The indicator should work correctly in finding the right amount of similarity/correlation between two charts.
There should be an output buffer in Data Window with the number of correlation.
I request final source code mq5 file.
Thnaks
Regards.