OPEN-SOURCE SCRIPT

Comparative Relative Strength - HongQuanTrader

Theo quanhua92
Cập nhật
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.
Phát hành các Ghi chú
fix: Do not plot the horizontal line if not using RS_PERIOD method
Phát hành các Ghi chú
refactor: remove unnecessary code
Phát hành các Ghi chú
feat: add track line of RS line
Phát hành các Ghi chú
chore: add title for long and short moving average lines
Phát hành các Ghi chú
chore: add title for line 1.0 in RS Period mode
Phát hành các Ghi chú
Update to fix chart rules
Candlestick analysischartanalysiscomparativecomparativestrengthRelative Strength Comparison

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm