radixvinni

CPI-weighted USD/RUB exchange rate calculation

Projected target for USDRUB             calculated by inflation rates (consumer price indexes) is 110.
Remove from Favorite Scripts Add to Favorite Scripts
//CPI_RUS = PRICE_RUS_PRODUCTS / PRICE_RUB
//CPI_USA = PRICE_US_PRODUCTS / PRICE_USD
//PRICE_RUS_PRODUCTS != PRICE_US_PRODUCTS
//PRICE_USD / PRICE_RUB [year 1999] = 22
//PRICE_RUS_PRODUCTS / PRICE_US_PRODUCTS [year 1999 and => now] = CPI_RUS / CPI_USA / 22 = 0.02
//PRICE_USD / PRICE_RUB [now] = CPI_RUS / CPI_USA / 0.02 = 50 * CPI_RUS / CPI_USA

study("CPI-weighted USD/RUB exchange rate calculation", overlay=true)
s = 50 * security("QUANDL:RATEINF/CPI_RUS","M",close) / security("QUANDL:RATEINF/CPI_USA","M",close)
plot(s, linewidth=2)
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out