Currency StrengthRepublished: The original script violated house rules by including an external link to Backtest Rookies.
Background
The currency strength indicator takes up to 4 forex pairs and calculates the average strength across all pairs. The indicator uses the pair's daily percentage change to calculate the overall strength. For flexibility, it can accept any instrument as an input. This means you can use multiple instances to track various currency strengths. It was designed with the major pairs in mind but there is no reason why it cannot be used for other FX pairs.
Note: The indicator defaults to GBP. When setting it up for other currencies, be sure to flag whether the currency is a counter currency or not.
The code is provided free and open source. Please modify it as you see fit.
Screenshots
Defaults with Annotation
Yen strength beating pound strength
Opposing Trends
Currencystrength
8 Pair Strength R2.0 updated by JustUncleLThis is an updated script Originally written by @glaz
Description:
This study is a version of Currency Strength Meter, that utilises TradingView's built-in "True Strength Index" (TSI) function. The TSI uses moving averages of the underlying momentum of a financial instrument.
Modifications:
10-Nov-2017 by JustUncleL
Corrected the weighting on JPY pairs, by dividing their close values by 100 to bring them within 1.0 range of the other pairs.
Added option to use different Data Source, eg hl2, hlc3, ohlc4 etc.
Updated to PineScript version 3.
Updated variable names to reflect their origin.