Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Spearman rank correlation - floating levels - indicateur pour MetaTrader 5

Vues:
6480
Note:
(19)
Publié:
2018.10.28 21:33
Mise à jour:
2019.01.29 15:50
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Usually when Spearman rank is used, it is coupled with some fixed levels that, once when crossed, should indicate high "strength" of correlation (positive or negative, does not matter). This version is a Spearman rank correlation with an addition of floating levels to be used instead of using fixed level as a measure of high or low correlation ratio.


Theory:

A nonparametric (distribution-free) rank statistic proposed by Spearman in 1904 as a measure of the strength of the associations between two variables (Lehmann and D'Abrera 1998). The Spearman rank correlation coefficient can be used to give an R-estimate, and is a measure of monotone association that is used when the distribution of the data make Pearson's correlation coefficient undesirable or misleading.

The Spearman rank correlation coefficient is defined by


where is the difference in statistical rank of corresponding variables, and is an approximation to the exact correlation coefficient.

Usage:

You can use the color change as a signal.

PS: the "big picture" example that can show why it seems that floating levels are adding to the estimation when Spearman rank is used.

Adaptive ATR channel Adaptive ATR channel

Adaptive ATR channel

MinMax indicator MinMax indicator

MinMax indicator

Trend direction and force - DSEMA smoothed Trend direction and force - DSEMA smoothed

Trend direction and force - double smoothed EMA smoothed

Swami stochastic Swami stochastic

Swami stochastic