• Join us

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Views:
977
Rating:
votes: 8
Published:
2018.07.13 15:16
SymbolX.mq5 (26.22 KB)view

This indicator calculates the index of a given currency, using the USD index. The Close prices of six currency pairs are used to calculate the index.

For example:

  • EUR index is calculated as (EUR / USD) * USDX;
  • CHF index is calculated as USDX / (USD / CHF).

The indicator has one input parameter:

  • Instrument - name of instrument, the index of which shall be calculated.

It should be noted that six currency pairs are used for calculating the index, namely: EURUSD, USDJPY, GBPUSD, USDCAD, USDSEK, and USDCHF; and all the necessary history for those symbols must be additionally loaded to get a correct display. This will require some time. It means that, at the first running or switching the chart timeframe, the indicator will first load history and only then calculate and display the index for your desired currency.

The indicator works on the charts of any currency pairs.

Fig 1. Index EUR

Fig 1. Index EUR


Fig. 2. Index RUB

Fig. 2. Index RUB


Fig. 3. Index SEK

Fig. 3. Index SEK


Fig. 4. Index USD

Fig. 4. Index USD

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/21157

Ang_Zad_C_Hist_Candle Ang_Zad_C_Hist_Candle

A candlestick-based chart based on histograms Ang_Zad_C_Hist calculated on the Open, High, Low, and Close timeseries of the price chart.

VR Atr pro Lite MT5 VR Atr pro Lite MT5

Indicator Atr Lite calculates the average price motion

SymbolX_Candle SymbolX_Candle

This indicator calculates the index of a given currency, using the USD index. It is based on indicator SymbolX, but four prices are used for calculations: OHLC instead of just one Close price.

ASO ASO

Indicator ASO (Average Sentiment Oscillator) displays the general market climate.