Page 2 of 4

Re: US Dollar Index [Upd May, 05]

PostPosted: Sun Oct 03, 2010 11:58 am
by nono17
Hello,

i need a big help, in one of your post you display your USDX Indicator with a MVA Indicator is it possible you give me your code, because i would like to get the ATR of USDX. I think if can aafct MVA to USDX i can affect ATR to USDX. Sorry for my bad english.
I stand for your response with impatience.
Thanks a lot,
Nono,

Re: US Dollar Index [Upd May, 05]

PostPosted: Thu Feb 17, 2011 4:22 am
by Alexander.Gettinger
Candle version of USDX indicator without top and bottom shadows.

USDX_Candle.png


Download:
USDX_Candle.lua
(6.43 KiB) Downloaded 2680 times

Re: US Dollar Index [Upd May, 05]

PostPosted: Mon May 16, 2011 6:17 pm
by Kevin_7
Doesn't appear to work.

When I apply the indicator to the chart I immediately get this error and chart is blank:
"An error occurred during the calculation of the indicator 'USDX_CANDLE'. The error details: [string "USDX_Candle.lua"]:109: Incorrect instrument name.."

I am subscribed to all the required symbols.

Also, why no wicks? I would like the wicks.

Thanks,
Kevin

Re: US Dollar Index [Upd May, 05]

PostPosted: Tue May 17, 2011 3:55 am
by Apprentice
I tested both versions.
Both work as expected.
Please recheck whether you have all the necessary currency pairs.

As for the lack of Wicks.

Tick based USDX Bar chart high/low values can differ from regular USDX bar cart.
This is because such values are calculated on the basis of only four data points, (Open, High, Low, Close) values. The true historical USDX bar chart High Low values can deviate from the obtained in this way.

Re: US Dollar Index [Upd May, 05]

PostPosted: Tue May 17, 2011 8:36 am
by Kevin_7
I figured out why it wasn't working. I needed to subscribe to USD/SEK as well. However this pair is not listed in the description of the indicator that shows in the Add Indicator box in Marketscope. There is a little instruction there that lists the pairs you need to subscribe to. USD/SEK is not listed. I understand now looking back through the posts that this pair was added in later. Would be good if the indicator description was updated as well.

Back to the wicks, is there a way to derive the indicator from the candles/bars of all the pairs of the timeframe the chart is set to (when higher than tick timeframe) so that the full OHLC data is used to calculate and then display a full USDX candle/bar of that given timeframe?

Thanks!
Kevin

Re: US Dollar Index [Upd May, 05]

PostPosted: Tue May 17, 2011 9:35 am
by Apprentice
About Wicks
Actually it's a good idea.
We should calculate USDX only for minute time frame.
I just hope that this calculation does not require too many resources.

Re: US Dollar Index [Upd May, 05]

PostPosted: Wed May 18, 2011 12:50 pm
by alpha_bravo
Would there be any chance of making the index inputs editable? Like if i wanted to make a GBP or a EURO index... i might add 6 instruments of my choice to create the index etc? Just a thought. :|

Re: US Dollar Index [Upd May, 05]

PostPosted: Wed May 18, 2011 2:41 pm
by Apprentice

Re: US Dollar Index [Upd May, 05]

PostPosted: Thu May 19, 2011 6:03 am
by alpha_bravo
excellent, cheers.

Re: US Dollar Index [Upd May, 05]

PostPosted: Fri Jul 22, 2011 2:14 am
by Alexander.Gettinger
USDX indicator with last bar calculation.

Download:
USDX1_2.lua
USDX.lua
(7.45 KiB) Downloaded 2206 times