L_Correlation

0
(0)
Name:
L_Correlation [ ru | cn ]
Author: lotos4u (2008.06.28 19:12)
Downloaded: 3223
Download:
L_Correlation 1
 ^L_Correlation.mq4 (7.2 Kb) View

The calculation of correlation coefficient between two quotes charts of two currency pairs is performed (between the currency pair to whose chart the indicator is attached and the pair specified in the parameters of the indicator).

The followings are displayed in the indicator's window:

  • The chart of the correlation coefficient (you can disable its displaying as is shown on the mentioned pictures)
  • The chart of the moving average related to the curve of the correlation coefficient (you can disable displaying)
  • The average value of the correlation coefficient for the specified number of last bars

L_Correlation 2

L_Correlation 3

Mode = 0, 1, 2 - the parameter that determines the exact property of the price chart the correlation will be calculated for (0 - for the close price of the bar, 1- for the differnece between the open and the close prices, 2 - for the relation between the close price and the maximum price of the bar).

Pair = "USDCHF", "EURUSD"... - a currency pair the correlation coefficient is to be calculated for.
ShowCorrelation = true - if the displaying of the buffer of the correlation coefficient is necessary, = false - if not.
ShowMA = true - if the displaying of the buffer of the correlation coefficient's moving average is necessary, = false - if not.
CorrelationRadius = 15 - the radius of the correlation.
MA_Period = 10 - the period of the moving average.
ResultingBars = 0 - the number of bars the total average value of the correlation coefficient is calculated by (this value is displayed at the bottom-left part of the window). If ResultingBars = 0, then the average will be calculated by all obtained values of the correlation coefficient.

FontName = "Verdana" - the font the average value of the correlation coefficient is displayed with.
FontSize = 10 - the font size.
FontColor = Black - the font color.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.