OPEN-SOURCE SCRIPT
Dual Relative Strength Flexible

Dual Relative Strength Flexible (RS1 & RS2)
This indicator calculates two Relative Strength (RS) values to compare a stock’s performance over two timeframes against different benchmarks.
Key Features:
RS1: Measures long-term relative strength of the stock versus a primary benchmark index (e.g., NIFTY).
RS2: Measures short-term relative strength which can be customized by the user to compare the stock against a sectoral index, NIFTY 500, NIFTY Total Market, or any other preferred index.
Zero Baseline: Displays neutral performance level for quick interpretation.
Color-coded plots to highlight outperformance (green hues) or underperformance (red hues).
Background shading: Green when both RS1 & RS2 are positive, red when both are negative.
Info Table: Shows current RS1, RS2 values, benchmark names, and their difference in percentage terms.
This indicator calculates two Relative Strength (RS) values to compare a stock’s performance over two timeframes against different benchmarks.
Key Features:
RS1: Measures long-term relative strength of the stock versus a primary benchmark index (e.g., NIFTY).
RS2: Measures short-term relative strength which can be customized by the user to compare the stock against a sectoral index, NIFTY 500, NIFTY Total Market, or any other preferred index.
Zero Baseline: Displays neutral performance level for quick interpretation.
Color-coded plots to highlight outperformance (green hues) or underperformance (red hues).
Background shading: Green when both RS1 & RS2 are positive, red when both are negative.
Info Table: Shows current RS1, RS2 values, benchmark names, and their difference in percentage terms.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.