Optuma Forums › Optuma Scripting › Dollar Index Code (DXY) › Reply To: Dollar Index Code (DXY)
July 29, 2021 at 1:15 am
#65387
- Topics: 123
- Replies: 356
- Posts: 479
Hi Jeffrey,
Where I restructured your code as follows it produced a SHOWPLOT
1 2 3 4 5 6 7 8 9 10 |
// DollarIndex v1=POWER(EURUSD:OF POWER=-0.576) ; v2= POWER(USDJPY:OF POWER=0.136); v3= POWER(GBPUSD:OF POWER=-0.119); v4= POWER(USDCAD:OF POWER=0.091) ; v5= POWER(USDSEK:OF POWER=0.042) ; v6= POWER(USDCHF:OF POWER=0.036); 50.14348112 * v1*v2*v3*v4*v5*v6 |
Not sure though whether it the plot you are expecting as it comes up with some really extreme values. Give it a try.
Cheers
Trevor