USDX (MetaTrader indicator) — calculates the dollar index (USDX or DXY) using the EUR/USD, USD/JPY, GBP/USD, USD/CAD, USD/CHF and USD/SEK currency pairs. The formula used for calculation is the following:
USDX = 50.14348112 × EURUSD-0.576 × USDJPY0.136 × GBPUSD-0.119 × USDCAD0.091 × USDSEK0.042 × USDCHF0.036
The resulting indicator resembles USDX — a dollar index traded on ICE. The index was introduced in 1973 at an initial value of 100. The rules for its calculation were updated only once — in 1999 to reflect the introduction of euro.
The presented indicator is displayed in form of candlesticks (MT5 version) or a line (MT4 version) with two removable and customizable moving averages. The indicator is shown in the separate chart window and may complement the research of any dollar-based currency pair.
Although the USDX indicator is available for both MT4 and MT5 versions of the platform, the MT5 version is much more robust than the MT4 one, offering faster, more accurate and up-to-date index calculation. The MetaTrader 5 version also displays the whole candles, while MetaTrader 4 users have to choose, which line to draw — Open, High, Low or Close.
It is very easy to modify the given USDX indicator to calculate and display any other currency index.
EUR/USD, USD/JPY, GBP/USD, USD/CAD, USD/CHF and USD/SEK currency pairs should be added to your Market Watch window for this indicator to work. You might need to modify the input parameter IndexPairs for currency pairs to reflect their names given by your broker.
If the indicator displays incorrectly, try reloading; for example, by toggling the chart's timeframe.
USDX Indicator Chart Example in MetaTrader 4:
USDX Indicator Chart Example in MetaTrader 5:
As you can see, the indicator looks quite different depending on the version of the MetaTrader platform used. In addition, MT5 version is a true multi-currency indicator and reacts immediately on every tick in any of the index currency pairs.
While no trading signals can be offered by the USDX on its own, it can be used in comparison with the chart of some dollar-based currency pair. It might be a good idea to buy when the USDX declines but the current currency pair is rising, or sell when the USDX goes up but the currency pair is falling. Such divergence would mean that the currency pair is much stronger than the other components of the dollar index.
Additional advantage of this indicator is the use of the moving average on the USDX to detect the current trend.
Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.
Do you have any suggestions or questions regarding this indicator? You can always discuss USDX with the other traders and MQL programmers on the indicators forums.