MQL4 - automated forex trading   /  

Code Base

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

Code Base  Indicators  DXY: Dollar Index To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
and Trade on the Go!
Couldn't find the right code? Order it in the Jobs section

This library is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

and Trade on the Go!

Name:
DXY: Dollar Index [ ru ]
Author: andydoc (2009.12.16 11:50)
Rating: 10
Downloaded: 10893
Download:
 Dollar Index.mq4 (3.3 Kb) View

Author:

andydoc

Description:

This indicator calculates and displays the Dollar Index and 2 definable moving averages. In order for it to work, the broker must provide prices for all the reference pairs, i.e. EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, USDCHF.

The Dollar Index is well described here: ICE Dollar Index

Image:


The indicator against 2 pairs, reading exactly the same.

Recommendations:

  • The periods for the moving averages can be changed - defaults are 20 and 40
  • The indicator will work on any chart and on any period.
11 comments: 1 2   To post a new comment, please log in or register
Mlewis:

Fantastic, thank you!

I have an idea though that i think would be great... Is it possible to add a zigzag to this indicator, then for each leg of the zigzag, display the percentage price movements for each of the currency pairs that make up the dollar index?

This would make understanding which pairs move the most during bull trends or bear trends much simpler when trading using the index.

Thanks.

MJL

Hi - sorry - not a regular visitor these days - will have look at it when I have time :)
17.03.2013 11:11 andydoc

Fantastic, thank you!

I have an idea though that i think would be great... Is it possible to add a zigzag to this indicator, then for each leg of the zigzag, display the percentage price movements for each of the currency pairs that make up the dollar index?

This would make understanding which pairs move the most during bull trends or bear trends much simpler when trading using the index.

Thanks.

MJL


07.08.2012 14:05 Mlewis

Thank you very much andydoc. It works perfectly. The real USD Index. I really appreciate it when people do thorough work.

28.04.2010 23:14 Laurus12
Could you make it as a 4 decimal pricing? Thank you
24.03.2010 23:09 Takbir

Hello, how about JPY and GBP index? Is it possible? Thank you.

29.01.2010 19:57 savva08
pipthief wrote:

Hmm..good indicator, does it work for 5 decimal pricing? doesn't seem so to me

Thanks - it works for 5 decimals - the images are from Alpari uk = 5 decimals


31.12.2009 03:54 andydoc

Hmm..good indicator, does it work for 5 decimal pricing? doesn't seem so to me


29.12.2009 04:40 pipthief
shanye wrote:

[URL=http://www.articlesbase.com/currency-trading-articles/metatrader-brokers-how-to-get-cashback-from-forex-trading-1575375.html]MetaTrader brokers[/URL]

Please do not spam your articles here - use whichever broker you normally use as long as they offer all necessary pairs. It is an indicator not a holy grail!


28.12.2009 12:58 andydoc

i have the same ques,which broker to use : /

<a href="http://www.articlesbase.com/currency-trading-articles/metatrader-brokers-how-to-get-cashback-from-forex-trading-1575375.html">MetaTrader brokers</a>

23.12.2009 19:49 shanye
bolasatuboladua wrote:

which broker to use?

tried on alpari us broker.. seems not showing anything..

please help

thanks.

The broker needs to show the right pairs and the history for all pairs must be loaded, otherwise the indicator value will be NULL or 0. I am working on a version trapping errors to give an alert if the history has not loaded or the pair is not hosted by the broker.

I have used it on Alpari's UK demo server with no problem


19.12.2009 12:44 andydoc