- July 15, 2013
- Posted by: Forex Wiki Team
- Category: FX Ind
No Comments
1667
1534
Name: |
|
||
Author: | Scriptor (2009.01.07 09:28) | ||
Rating: | 8 | ||
Downloaded: | 4039 | ||
Download: |
|
||
The indicator calculates the correlation of the currency pairs.
Input Parameters: extern string OtherChart="EURUSD"; extern int n=20; extern bool UseOpen=true; extern bool UseClose=false; extern bool UseHigh=false; extern bool UseLow=false; extern int CalcBars=400; Calculation Formula : and are the prices of two assets on the same TF. n is the period the correlation is calculated for. x and y (with the dashes above them) are the average values of x and y for the last n bars.
Example with USDCHF and EURUSD:
Correlation |