After not being able to find a suitable source for this data without another data subscription, I decided to make my own indicator. It calculates the dollar index from 6 forex pairs. Pairs must be entered in the correct sequence to have it calculate properly. I have the six pairs entered and then hidden on the chart so that only the indicator shows.
Indicator txt code:
{US Dollar Index Calculated from Currency Pairs EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, and USDCHF.
Version 1.0
data1=EURUSD;
data2=USDJPY:
data3=GBPUSD;
data4=USDCAD;
data5=USDSEK;
data6=USDCHF;
Instruments must be entered in above order.
Formula for calculation:
USDx = 50.14348112 * EURUSD^(-0.576) * USDJPY^0.136 * GBPUSD^(-0.119) * USDCAD^0.091 * USDSEK^0.042 * USDCHF^0.036 }
Inputs:
EURUSD( Close Data1 ),
USDJPY( Close Data2 ),
GBPUSD( Close Data3 ),
USDCAD( Close Data4 ),
USDSEK( Close Data5 ),
USDCHF( Close Data6 );
Vars:
USDx(0);
USDx = 50.14348112*Power(EURUSD,(-0.576))*Power(USDJPY,0.136)*Power(GBPUSD,(-0.119))*Power(USDCAD,0.091)*Power(USDSEK,0.042)*Power(USDCHF,0.036);
Plot1 ( USDx, "USDx" ) ;
Category MultiCharts
|
|
|