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)
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out