OPEN-SOURCE SCRIPT
Two Currency Strength Comparison

Two Currency Strength Comparison
This indicator compares the relative strength of any two major currencies using RSI-based currency strength calculations.
Users can freely select any two currencies from the following:
* EUR
* USD
* GBP
* AUD
* JPY
* CAD
* CHF
The selected currencies are displayed as two strength lines, making it easy to compare their relative momentum.
The area between the two lines is color-coded:
Green– Currency 1 is stronger than Currency 2
Red – Currency 2 is stronger than Currency 1
This provides a clear visual representation of changes in relative currency strength.
Features
* Compare any two major currencies
* RSI-based currency strength calculation
* Adjustable RSI length
* User-selectable calculation timeframe
* Color-filled strength difference
* Strength crossover signals
* Optional alert support
* No repainting on confirmed bars
Supported Currencies
* EUR
* USD
* GBP
* AUD
* JPY
* CAD
* CHF
Typical Uses
* Confirm trend direction
* Compare currency momentum
* Identify strengthening and weakening currencies
* Confirm Forex trade setups
* Analyze relative strength before entering a position
This indicator is intended as a decision-support tool and should be used together with price action and other technical analysis methods rather than as a standalone trading system.
This indicator compares the relative strength of any two major currencies using RSI-based currency strength calculations.
Users can freely select any two currencies from the following:
* EUR
* USD
* GBP
* AUD
* JPY
* CAD
* CHF
The selected currencies are displayed as two strength lines, making it easy to compare their relative momentum.
The area between the two lines is color-coded:
Green– Currency 1 is stronger than Currency 2
Red – Currency 2 is stronger than Currency 1
This provides a clear visual representation of changes in relative currency strength.
Features
* Compare any two major currencies
* RSI-based currency strength calculation
* Adjustable RSI length
* User-selectable calculation timeframe
* Color-filled strength difference
* Strength crossover signals
* Optional alert support
* No repainting on confirmed bars
Supported Currencies
* EUR
* USD
* GBP
* AUD
* JPY
* CAD
* CHF
Typical Uses
* Confirm trend direction
* Compare currency momentum
* Identify strengthening and weakening currencies
* Confirm Forex trade setups
* Analyze relative strength before entering a position
This indicator is intended as a decision-support tool and should be used together with price action and other technical analysis methods rather than as a standalone trading system.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.