OPEN-SOURCE SCRIPT

Comparative Relative Strength - HongQuanTrader

Mis à jour
This script is designed to enhance your trading strategy by comparing the current symbol with another comparative symbol. The goal is to trade a symbol only when its Relative Strength (RS) value surpasses the long moving average of the RS value, ensuring more informed and strategic trading decisions.

Default Mode

In the default mode, the RS value is calculated by simply dividing the base symbol by the comparative symbol:



Period Mode
When you enable the “use period” option, the script uses the RS_PERIOD equation. This mode is particularly useful for comparing multiple symbols against the same comparative symbol, with the output normalized around 1.0 for easier comparison:



By leveraging these calculations, you can gain deeper insights into the relative performance of different symbols, allowing you to make more precise and confident trading decisions. Whether you’re comparing stocks, currencies, or any other assets, this script provides a robust framework for enhancing your trading strategy.
Notes de version
fix: Do not plot the horizontal line if not using RS_PERIOD method
Notes de version
refactor: remove unnecessary code
Notes de version
feat: add track line of RS line
Notes de version
chore: add title for long and short moving average lines
Notes de version
chore: add title for line 1.0 in RS Period mode
Notes de version
Update to fix chart rules
Candlestick analysischartanalysiscomparativecomparativestrengthRelative 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é