Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 24539
- Rating:
- Published:
- 2012.05.30 15:05
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Pearson correlation indicator shows the correlation between symbols.
Input parameters:
- Symbol - Name of the second symbol, used for calculation of correlation;
- Period - Period;
- Price - Applied price;
- Min correlation - Gradient color for weak correlation;
- Max correlation - Gradient color for strong correlation.
Formula:
where:
- xi and yi - time series;
- n - number of data;
- σx and σy - standard deviations.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/897

The indicator shows the size of Highs and Lows and their values over the specified period.

Graphic control for color selection.