Currency Strength V2An update to my original Currency Strength script to include a 2nd timeframe for more market context.
Changed the formatting slightly for better aesthetics, as the extra column and colors became unsightly.
Also added a new setting for "Flat Color", which changes the value background to a simple green/red for above or below 50, rather than using the Color Scale that increases color intensity the further it gets from 50.
________________________________________________________________________________
This script measures the strength of the 6 major currencies USD, EUR, GBP, CAD, AUD and JPY.
Simply, it averages the RSI values of a currency vs the 5 other currencies in the basket, and displays each average RSI value in a table with color coding to quickly identify the strongest and weakest currencies over the past 14 bars (or user defined length).
The arrow in the current RSI column shows the difference in average RSI value between current and X bars back (user defined), telling you whether the combined RSI value has gone up or down in the last X bars.
Using the average RSI allows us to get a sense of the currency strength vs an equally weighted basket of the other majors, as opposed to using Indexes which are heavily weighted to 1 or 2 currencies.
The additional security calls for the extra timeframe make this slower to load than the original, but this was a user request so hopefully it will prove worthwhile for some people.
Those who find the loading too slow when switching between charts may be better off still using the original, which is why this is posted as a separate script and not an update to the original.
This is the table with Flat Color option enabled.
Currencyanalysis
TIL Currency Strength IndexTrading Indicator Lab’s Currency Strength Index for TradingView is a “multitool” of currency indices. It can calculate the strength index of major currencies namely:
- US Dollar (USD)
- Euro (EUR)
- British Pound (GBP)
- Swiss Franc (CHF)
- Japanese Yen (JPY)
- Canadian Dollar (CAD)
- Australian Dollar (AUD)
- New Zealand Dollar (NZD)
Instead of using traditional formulas for index such as the Dow Jones FXCM Dollar Index, the Currency Strength Index indicator uses a close formula that factors in all the 8 currencies to calculate a whole and accurate representation of each currency’s strength.
Inputs
- Currency – allows the user to select one of 8 currencies to calculate and display its strength index. Choices are USD, EUR, GBP, CHF, JPY, CAD, AUD, and NZD.
- Bullish Candle Color – sets the color of bullish candlesticks in the index
- Bearish Candle Color – sets the color of the bearish candlesticks in the index