OPEN-SOURCE SCRIPT

Comparative Relative Strength - HongQuanTrader

Von quanhua92
Aktualisiert
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.
Versionshinweise
fix: Do not plot the horizontal line if not using RS_PERIOD method
Versionshinweise
refactor: remove unnecessary code
Versionshinweise
feat: add track line of RS line
Versionshinweise
chore: add title for long and short moving average lines
Versionshinweise
chore: add title for line 1.0 in RS Period mode
Versionshinweise
Update to fix chart rules
Candlestick analysischartanalysiscomparativecomparativestrengthRelative Strength Comparison

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss