OPEN-SOURCE SCRIPT

Currency Relative Strength Index

Currency Relative Strength Index
This scripts show current RSI value and histogram of 7 Currency index on 3 time frame: 4H, 1H, 15M

//=== RSI Function ===\\
rsi_period=input(14)
M15_RSI( sym ) =>
M15_RSI = security( sym , "15", rsi (close,rsi_period))
H1_RSI( sym ) =>
H1_RSI = security( sym , "60", rsi (close,rsi_period))
H4_RSI( sym ) =>
H4_RSI = security( sym , "240", rsi (close,rsi_period))

//=== Currency Index ===\\
1. DXY - USD Index - U.S. Dollar Index
2. EXY - EUR Index - Euro Currency Index
3. JXY - JPY Index - Japanese Yen Index
4. BXY - GBP Index - British Pound Index
5. AXY - AUD index - Australian Dollar Index
6. CXY - CAD Index - Canadian Dollar Index
7. SXY - CHF Index - Swiss Franc Currency Index
currencystrengthOscillators

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer