거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Spearman's Rank Correlation - MetaTrader 5용 지표

게시자:
Nikolay Kositsin
조회수:
12850
평가:
(27)
게시됨:
2011.10.06 16:58
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Real author:

Rosh

Spearman's Rank Correlation is a non-parametrical method used for statistical analysis of the correlation.

Practical calculation of the Spearman's Rank Correlation ratio includes the following steps:

  1. An index number (a rank) must be assigned to each of the parameters in ascending (or descending) order;
  2. The differences of each pair ranks of the compared values must be determined;
  3. Each difference must be squared and the gained results must be summed up;
  4. The ranks correlation ratio must be calculated as follows:


where  is a sum of the ranks difference and is a number of paired observations.

When using the rank correlation ratio, the tightness of the correlation between the parameters is conventionally evaluated. The ratio values equal to 0.3 or lower are deemed to show weak correlation tightness, the values more than 0.4 but less than 0.7 show moderate correlation tightness and the values equal to 0.7 or higher indicate high correlation tightness.

The power of the Spearman's Rank Correlation is a bit lower than the power of the correlation parametrical ratio. It is reasonable to use the rank correlation ratio in case there is a small amount of observation results.

This method can be used not only for quantitative data but also when registered values are determined by descriptive features of different intensity. The description is taken from here.

This indicator is a type of an oscillator but it is more smooth unlike Stochastic, while not lagging at the reverse points.

The only external parameter affecting the calculation algorithm is rangeN setting the number of bars, for which we are looking for regularity. If rangeN = 14, we use the close prices sequence Close[i], Close[i+1], ... Close[i+rangeN-1] and create a sequence of ranks for them, i.e. the place each close price is located at, in case this sequence is sorted. In this case we have one real chart compared with a steadily increasing one.

The direction parameter means sorting in descending (true) or ascending (false) order. The value of the true parameter shows more traditional picture, while false shows a mirror image.

The CalculatedBars parameter is implemented to limit the number of the bars the calculation is performed for and to save CPU resources (though it may not be so important). Zero value means the calculation refers to the whole available history. The Maxrange parameter that is equal to 30 sets the maximum calculation period. This parameter is also implemented to save resources and it can be useful for some traders.

Spearman's Rank Correlation

Spearman's Rank Correlation indicator

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/460

ZigZag ZigZag

The variant of the ZigZag indicator optimized by its operation rate.

Chaikin Volatility Index With a Smoothing Algorithm Selection Chaikin Volatility Index With a Smoothing Algorithm Selection

Chaikin Volatility Index determines volatility on the basis of the range width between minimum and maximum. The presented variant of this popular indicator allows to select the smoothing algorithm out of ten possible variants.

Chaikin Oscillator Chaikin Oscillator

Chaikin Oscillator with a smoothing algorithm selection.

AT_CF AT_CF

Four digital filters that form the basis of the V. Kravchuk's AT&CF method in one separate window.