US Dollar Index [Upd May, 05]

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: US Dollar Index [Upd May, 05]

Postby nono17 » Sun Oct 03, 2010 11:58 am

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,
nono17
 
Posts: 2
Joined: Sun Oct 03, 2010 8:40 am

Re: US Dollar Index [Upd May, 05]

Postby Alexander.Gettinger » Thu Feb 17, 2011 4:22 am

Candle version of USDX indicator without top and bottom shadows.

USDX_Candle.png


Download:
USDX_Candle.lua
(6.43 KiB) Downloaded 2678 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: US Dollar Index [Upd May, 05]

Postby Kevin_7 » Mon May 16, 2011 6:17 pm

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
Kevin_7
 
Posts: 2
Joined: Mon May 16, 2011 6:07 pm

Re: US Dollar Index [Upd May, 05]

Postby Apprentice » Tue May 17, 2011 3:55 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: US Dollar Index [Upd May, 05]

Postby Kevin_7 » Tue May 17, 2011 8:36 am

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
Kevin_7
 
Posts: 2
Joined: Mon May 16, 2011 6:07 pm

Re: US Dollar Index [Upd May, 05]

Postby Apprentice » Tue May 17, 2011 9:35 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: US Dollar Index [Upd May, 05]

Postby alpha_bravo » Wed May 18, 2011 12:50 pm

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. :|
alpha_bravo
 
Posts: 49
Joined: Thu Jan 13, 2011 3:51 pm


Re: US Dollar Index [Upd May, 05]

Postby alpha_bravo » Thu May 19, 2011 6:03 am

excellent, cheers.
alpha_bravo
 
Posts: 49
Joined: Thu Jan 13, 2011 3:51 pm

Re: US Dollar Index [Upd May, 05]

Postby Alexander.Gettinger » Fri Jul 22, 2011 2:14 am

USDX indicator with last bar calculation.

Download:
USDX1_2.lua
USDX.lua
(7.45 KiB) Downloaded 2205 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Majestic-12 [Bot] and 46 guests