DINEXSPACEXAUUSD SpecialistEAs available to rentCustom EA: Strategy → Code → BacktestView rentable EA bots
// MQL5 · INDICATOR_LIBRARY

MT5 indicator library

14 ways to read signals from indicators, price action and time. Each page explains the rule on simulated data; eight classic indicators also come with sample MQL5 code.

  • 14 indicators
  • 8 .mq5 sample source files, direct download
  • MT5 eight samples compile in MetaEditor
// INDICATORS_IN_THE_LIBRARY

14 indicators and signal rules

Choose a page to see how it is calculated, the illustrative signals and the parameters you can put into an EA brief.

# MOVING_AVERAGE.MQ5Moving Average (SMA / EMA) — SMA(14) 2,409.8 / EMA(14) 2,413.1 — SIMULATEDSMA / EMA 14XAUUSD · 1H / SIMULATEDRESSUP2,336.12,364.32,448.92,420.1▲ BUYCandle 102: BUYVOL*Moving Average (SMA / EMA) — SMA(14) 2,409.8 / EMA(14) 2,413.1 — SIMULATEDSMA / EMA 14XAUUSD · 1H / SIMULATEDRESSUP2,336.12,364.32,448.92,420.1▲ BUYCandle 102: BUYVOL*Moving Average (SMA / EMA) — SMA(14) 2,409.8 / EMA(14) 2,413.1 — SIMULATEDSMA / EMA 14XAUUSD · 1H / SIMULATEDRESSUP2,336.12,364.32,448.92,420.1▲ BUYCandle 102: BUYVOL*SMA 14EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Moving AverageTrendMoving Average (SMA / EMA)The base indicator of almost every trend system: it flattens price so you can see the real direction.View indicator Use this indicator to create a Custom EA brief →
# RSI.MQ5Relative Strength Index (RSI) — RSI(14) 69.0 — SIMULATEDRSI 14XAUUSD · 1H / SIMULATEDRESSUP2,426.9▼ SELLCandle 86: SELLVOL*3070RSIRelative Strength Index (RSI) — RSI(14) 69.0 — SIMULATEDRSI 14XAUUSD · 1H / SIMULATEDRESSUP2,330.92,426.9▼ SELLCandle 86: SELLVOL*3070RSIRelative Strength Index (RSI) — RSI(14) 69.0 — SIMULATEDRSI 14XAUUSD · 1H / SIMULATEDRESSUP2,330.92,426.9▼ SELLCandle 86: SELLVOL*3070RSIEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Relative Strength IndexMomentumRelative Strength Index (RSI)Measures the strength of recent price moves and maps it to an easy-to-compare 0–100 scale.View indicator Use this indicator to create a Custom EA brief →
# MACD.MQ5MACD — MACD(12,26,9) 5.51 / signal 2.58 — SIMULATEDMACD 12/26/9XAUUSD · 1H / SIMULATEDRESSUP2,332.62,430.2▲ BUYCandle 105: BUYVOL*0MACD / SignalMACD — MACD(12,26,9) 5.51 / signal 2.58 — SIMULATEDMACD 12/26/9XAUUSD · 1H / SIMULATEDRESSUP2,332.62,430.2▲ BUYCandle 105: BUYVOL*0MACD / SignalMACD — MACD(12,26,9) 5.51 / signal 2.58 — SIMULATEDMACD 12/26/9XAUUSD · 1H / SIMULATEDRESSUP2,332.62,430.2▲ BUYCandle 105: BUYVOL*0MACD / SignalEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Moving Average Convergence DivergenceMomentumMACDUses the distance between two moving averages as a measure of momentum, with a histogram for the rate of change.View indicator Use this indicator to create a Custom EA brief →
# BOLLINGER_BANDS.MQ5Bollinger Bands — BB(20,2) 2,429.8 / 2,382.0 — SIMULATEDBOLLINGER 20/2XAUUSD · 1H / SIMULATEDRESSUP2,315.32,352.12,462.52,423.7▼ SELLCandle 110: SELLVOL*Bollinger Bands — BB(20,2) 2,429.8 / 2,382.0 — SIMULATEDBOLLINGER 20/2XAUUSD · 1H / SIMULATEDRESSUP2,315.32,352.12,462.52,423.7▼ SELLCandle 110: SELLVOL*Bollinger Bands — BB(20,2) 2,429.8 / 2,382.0 — SIMULATEDBOLLINGER 20/2XAUUSD · 1H / SIMULATEDRESSUP2,315.32,352.12,462.52,423.7▼ SELLCandle 110: SELLVOL*UpperMiddleLowerIllustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Bollinger BandsVolatilityBollinger BandsDraws two bands that flex with the standard deviation to show how far price has strayed from its average.View indicator Use this indicator to create a Custom EA brief →
# ICHIMOKU.MQ5Ichimoku Kinko Hyo — Ichimoku(9,26,52) 2,410.8 / 2,407.1 — SIMULATEDICHIMOKU 9/26/52XAUUSD · 1H / SIMULATEDRESSUP2,334.82,363.42,449.12,422.1▲ BUYCandle 111: BUYVOL*Ichimoku Kinko Hyo — Ichimoku(9,26,52) 2,410.8 / 2,407.1 — SIMULATEDICHIMOKU 9/26/52XAUUSD · 1H / SIMULATEDRESSUP2,334.82,363.42,449.12,422.1▲ BUYCandle 111: BUYVOL*Ichimoku Kinko Hyo — Ichimoku(9,26,52) 2,410.8 / 2,407.1 — SIMULATEDICHIMOKU 9/26/52XAUUSD · 1H / SIMULATEDRESSUP2,334.82,363.42,449.12,422.1▲ BUYCandle 111: BUYVOL*TenkanKijunSenkou ASenkou BChikouEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Ichimoku CloudTrendIchimoku Kinko HyoA complete system in one indicator: trend, support/resistance and entry signals in the same view.View indicator Use this indicator to create a Custom EA brief →
# ATR.MQ5Average True Range (ATR) — ATR(14) 7.67 — SIMULATEDATR 14XAUUSD · 1H / SIMULATEDRESSUP2,427.9▲ BUYCandle 111: BUYVOL*ATR · priceAverage True Range (ATR) — ATR(14) 7.67 — SIMULATEDATR 14XAUUSD · 1H / SIMULATEDRESSUP2,330.52,427.9▲ BUYCandle 111: BUYVOL*ATR · priceAverage True Range (ATR) — ATR(14) 7.67 — SIMULATEDATR 14XAUUSD · 1H / SIMULATEDRESSUP2,330.52,427.9▲ BUYCandle 111: BUYVOL*ATR · priceEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Average True RangeVolatilityAverage True Range (ATR)It does not show direction, only how strongly the market is moving — the basis for a sensible stop-loss.View indicator Use this indicator to create a Custom EA brief →
# STOCHASTIC.MQ5Stochastic Oscillator — Stochastic(14,3,3) %K 90.8 / %D 92.3 — SIMULATEDSTOCHASTIC 14/3/3XAUUSD · 1H / SIMULATEDRESSUP2,331.12,426.0▼ SELLCandle 112: SELLVOL*2080%K / %DStochastic Oscillator — Stochastic(14,3,3) %K 90.8 / %D 92.3 — SIMULATEDSTOCHASTIC 14/3/3XAUUSD · 1H / SIMULATEDRESSUP2,331.12,426.0▼ SELLCandle 112: SELLVOL*2080%K / %DStochastic Oscillator — Stochastic(14,3,3) %K 90.8 / %D 92.3 — SIMULATEDSTOCHASTIC 14/3/3XAUUSD · 1H / SIMULATEDRESSUP2,331.12,426.0▼ SELLCandle 112: SELLVOL*2080%K / %DEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Stochastic OscillatorMomentumStochastic OscillatorCompares the close with the full range of the last N candles to show where price sits within that range.View indicator Use this indicator to create a Custom EA brief →
# ADX.MQ5Average Directional Index (ADX) — ADX(14) 25.6 · +DI / −DI — SIMULATEDADX 14XAUUSD · 1H / SIMULATEDRESSUP2,418.4▼ SELLCandle 102: SELLVOL*25ADX / +DI / −DIAverage Directional Index (ADX) — ADX(14) 25.6 · +DI / −DI — SIMULATEDADX 14XAUUSD · 1H / SIMULATEDRESSUP2,334.92,418.4▼ SELLCandle 102: SELLVOL*25ADX / +DI / −DIAverage Directional Index (ADX) — ADX(14) 25.6 · +DI / −DI — SIMULATEDADX 14XAUUSD · 1H / SIMULATEDRESSUP2,334.92,418.4▼ SELLCandle 102: SELLVOL*25ADX / +DI / −DIEMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Average Directional IndexTrendAverage Directional Index (ADX)Measures the STRENGTH of a trend regardless of direction — the indicator for deciding whether to trade at all.View indicator Use this indicator to create a Custom EA brief →
# PRICE_ACTIONPrice Action — Price Action · swing 2/2 — SIMULATEDPRICE ACTIONXAUUSD · 1H / SIMULATEDRESSUP2,331.52,360.92,449.22,420.3▲ BUYCandle 104: BUYVOL*Price Action — Price Action · swing 2/2 — SIMULATEDPRICE ACTIONXAUUSD · 1H / SIMULATEDRESSUP2,331.52,360.92,449.22,420.3▲ BUYCandle 104: BUYVOL*Price Action — Price Action · swing 2/2 — SIMULATEDPRICE ACTIONXAUUSD · 1H / SIMULATEDRESSUP2,331.52,360.92,449.22,420.3▲ BUYCandle 104: BUYVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Price ActionPrice actionPrice ActionReads the structure of highs, lows and closed candles to spot a confirmed swing break.View indicator Use this indicator to create a Custom EA brief →
# SUPPORT_RESISTANCESupport / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*Support / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*Support / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Support and ResistancePrice actionSupport / ResistanceSupport and resistance zones taken from the low and high of the previous 20 candles.View indicator Use this indicator to create a Custom EA brief →
# HIGH_LOWHigh / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*High / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*High / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.20-candle High and LowPrice actionHigh / LowTracks the highest high and lowest low of the previous 20 candles to spot breakouts.View indicator Use this indicator to create a Custom EA brief →
# SESSION_HIGH_LOWSession High / Low — Asian session high/low · GMT+7 — SIMULATEDSESSION HIGH / LOWXAUUSD · 1H / SIMULATEDAsian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)RESSUP2,335.52,364.02,449.42,419.0▲ BUYCandle 106: BUYVOL*Session High / Low — Asian session high/low · GMT+7 — SIMULATEDSESSION HIGH / LOWXAUUSD · 1H / SIMULATEDAsian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)RESSUP2,335.52,364.02,449.42,419.0▲ BUYCandle 106: BUYVOL*Session High / Low — Asian session high/low · GMT+7 — SIMULATEDSESSION HIGH / LOWXAUUSD · 1H / SIMULATEDAsian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)Asian session GMT+7 (illustrative assumption)European session GMT+7 (illustrative assumption)US session GMT+7 (illustrative assumption)RESSUP2,335.52,364.02,449.42,419.0▲ BUYCandle 106: BUYVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Session High and LowTimeSession High / LowCompares price with the Asian session high/low before the European or US session.View indicator Use this indicator to create a Custom EA brief →
# CANDLESTICKCandlestick — Engulfing / Pin bar — SIMULATEDCANDLESTICKXAUUSD · 1H / SIMULATEDRESSUP2,329.42,359.92,451.62,425.4▼ SELLCandle 110: SELLVOL*Candlestick — Engulfing / Pin bar — SIMULATEDCANDLESTICKXAUUSD · 1H / SIMULATEDRESSUP2,329.42,359.92,451.62,425.4▼ SELLCandle 110: SELLVOL*Candlestick — Engulfing / Pin bar — SIMULATEDCANDLESTICKXAUUSD · 1H / SIMULATEDRESSUP2,329.42,359.92,451.62,425.4▼ SELLCandle 110: SELLVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Candlestick PatternsPrice actionCandlestickDetects engulfing or pin bar patterns from the bodies and wicks of closed candles.View indicator Use this indicator to create a Custom EA brief →
# TIMETime — 14:00 candle · GMT+7 — SIMULATED14:00 CANDLEXAUUSD · 1H / SIMULATEDRESSUP2,332.22,360.82,446.52,429.9▲ BUYCandle 111: BUYVOL*Time — 14:00 candle · GMT+7 — SIMULATED14:00 CANDLEXAUUSD · 1H / SIMULATEDRESSUP2,332.22,360.82,446.52,429.9▲ BUYCandle 111: BUYVOL*Time — 14:00 candle · GMT+7 — SIMULATED14:00 CANDLEXAUUSD · 1H / SIMULATEDRESSUP2,332.22,360.82,446.52,429.9▲ BUYCandle 111: BUYVOL*EMA 14Illustrative data — not real market data, not a trading signalIllustrative signals of the rule on simulated data — not a trading recommendation.Time-based EntryTimeTimeIllustrates an entry rule at a fixed time combined with the direction of the closed candle.View indicator Use this indicator to create a Custom EA brief →
// TRADINGVIEW_PINE

TradingView Pine

TradingView indicators for accumulating crypto, gold and RWA — growing both USDT and the assets.

See the crypto holding protocol →
// THE_DIFFERENCE

How it differs from MetaTrader 5's built-in indicators

The formula is not different. What differs is what you can do with it.

The eight sample MQL5 files use the classic formulas and are designed to match MT5's built-in versions — on purpose, because an indicator whose numbers disagree with the rest of the market is one nobody can cross-check for you. The difference lies elsewhere: no file calls the terminal's built-in indicator functions, no file declares a DLL, and every calculation sits in the open in the code, so it can be moved straight into an EA.

The whole calculation is readable

A built-in version returns a handle — usable, but you cannot see inside it. Here every calculation step is right in the code, so you can edit it or copy it into an EA.

No external dependencies

No DLL, no network calls, no license checks. Copy the file onto your machine and it compiles, even when the machine is offline.

No secret formula promised

There is no “improved” version here that gives better results. If someone offers you an indicator like that, ask to see the source code before you pay.

Want to turn an indicator into an automated EA?

An indicator only draws signals; entering trades, setting stop-losses and managing capital are still up to you. If you already have a clear set of rules, DinexSpace builds it into an EA.

Send a strategy brief