OPEN-SOURCE SCRIPT

Currency Relative Strength Index

3606
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

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.