OPEN-SOURCE SCRIPT

Real Interest Rate Differential

By blacksheepforex
The Real IRD is a simple indicator built for forex trades that need a long-term view and want to compare currencies in search of high yield. The indicated interest rate maturity is 2 years, since shorter maturities may not price central banks' monetary policy decisions.

Example:
- You need to do an analysis of the AUDUSD
- In the Interest Rate 1 field, we put the interest rate for the base currency, in this case the AUD
- In the Interest Rate 2 field, the interest rate of the other currency, in this case the USD
- In the CPI 1 field, inflation referring to base currency
- In the CPI 2 field, inflation for another currency

CPI Codes:
QUANDL:RATEINF/INFLATION_USA < USD
QUANDL:RATEINF/INFLATION_EUR < EUR
QUANDL:RATEINF/INFLATION_JPN < JPY
QUANDL:RATEINF/INFLATION_CHE < CHF
QUANDL:RATEINF/INFLATION_GBR < GBP
QUANDL:RATEINF/INFLATION_CAN < CAD
QUANDL:RATEINF/INFLATION_RUS < RUB
QUANDL:RATEINF/INFLATION_AUS < AUD
QUANDL:RATEINF/INFLATION_NZL < NZD
CPIForexinflationinterestratesTrend Analysisyields

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