OPEN-SOURCE SCRIPT

Comparative Strength [FT]

This indicator calculates the comparative strength between 2 variables by subtracting them instead of division/ratio.
Example:
A is stronger than B, then if A-B, it would be positive because value A is bigger than B.
A is weaker than B, then when A-B, this would be negative because A is lower than B.

What it does:
It takes the difference of averages of variable A (ie: stock), and the same for variable B (ie: index), and then the result of those is substracted to get a value.

Why is this indicator useful ?
To visualise comparative values between 2 related variables. IE: stock-index, stock-commodities, forex-interest rates, forex-bond, forex-inflation.


DISCLAIMER: Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security, investment, currencies or assets.
comparativecomparativestrengthRelative Strength Comparison

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité