Dollar Index as Main Chart

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Dollar Index as Main Chart

Postby logicgate » Sat May 08, 2021 9:35 am

Hi there buddy, I found this code here that plots a USDX index using the currencies from your broker market watch, it plots an index identical to the ICE USDX index (indicator attached).

But it plots it on a subwindow of the main chart.

My idea was: can you turn this into a USDX chart generator? This way we could have the index as a main chart, with volume and be able to apply indicators to it (it would aggregate the volume from each currency from the basket, so we can used volume based indicators).

Can you make two versions of it? One using the same currency basket provided in the original code, and another version using only EURUSD, GBPUSD, USDJPY and AUDUSD (so each currency will have equal 25% weight)?

We would drop the indicator in any chart, then it would create an offline chart that would update at every tick. Or it can be a script, your choice.

Best regards
Attachments
USDX.mq5
(17.12 KiB) Downloaded 129 times
logicgate
FXCodeBase: Aspirant (Junior)
 
Posts: 680
Joined: Tue Dec 11, 2018 7:54 am

Re: Dollar Index as Main Chart

Postby Apprentice » Sun May 09, 2021 10:56 am

Your request is added to the development list.
Development reference 459.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Dollar Index as Main Chart

Postby logicgate » Mon May 10, 2021 8:07 am

Thanks buddy,

I forgot to mention one extra option in indicator settings:

Invert Chart: Yes/No

Please make this update to Development reference 459

Best regards
logicgate
FXCodeBase: Aspirant (Junior)
 
Posts: 680
Joined: Tue Dec 11, 2018 7:54 am

Re: Dollar Index as Main Chart

Postby logicgate » Mon May 10, 2021 2:06 pm

I have found another indicator which seems to have a "better" or cleaner code for you to use as reference (instead of the one I posted on the OP).

Attached here:

Dollar Index.mq5
(5.91 KiB) Downloaded 151 times
logicgate
FXCodeBase: Aspirant (Junior)
 
Posts: 680
Joined: Tue Dec 11, 2018 7:54 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 15 guests