Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL5 Source Codes of Technical Indicators for MetaTrader 5

icon

MQL5 technical indicators analyze MetaTrader 5 price charts on Forex, as well as stock and commodity markets. Indicators define trend direction and power, overbought and oversold states, support and resistance levels. Underlying mathematical models provide objective assessment of the current market state allowing traders to accept or reject trading system's signals.

You can download and launch offered indicators in MetaTrader 5. The library of indicators is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

An MT5 fair value gap scanner that marks bullish and bearish imbalances and tracks when each zone is filled.

A broker time session map for MT5 that displays Asia, London and New York ranges with their confirmed highs and lows.

A clear MT5 market structure indicator that labels confirmed HH, HL, LH and LL swings directly on the chart.

A compact MT5 trend dashboard that compares EMA alignment and ADX strength across six timeframes.

A simple real-time classic Renko chart for MetaTrader 5. Set the brick size and the indicator builds equal-width Renko bricks directly from tick data. No offline charts, custom symbols or external libraries are required.

A simple MT5 indicator that shows the current fixed-size Renko run and the exact price level required to confirm a classic two-brick reversal.

Free MT5 indicator that automatically maps Fibonacci levels across multiple timeframes and highlights confluence zones, market structure, premium/discount areas and key price reactions.

Marks the start/end of up to three trading sessions (Asian, London, New York, or any custom windows) with vertical separators and/or shaded background boxes, repeated daily across a rolling recent window. Purely visual — no calculations, no signals, just clean session boundaries.

Automatically detects swing pivots and labels a rule-validated Elliott Wave count (1-2-3-4-5 impulse and A-B-C correction) directly on the chart, with a Fibonacci info panel. For guidance only, always confirm manually.

A lightweight MT5 chart indicator that displays live broker and symbol trading specifications including spread, tick size, tick value, volume limits, stop level and freeze level.

Calculates a non-repainting Nadaraya-Watson envelope using Gaussian smoothing and marks price crosses beyond the upper and lower bands with arrows.

A draggable MT5 risk calculator that converts the selected entry and stop distance into a broker normalized position size using tick size, tick value and account risk.

Market Structure & Smart Trade Tracker (MT5) An advanced all-in-one Smart Money Concepts (SMC) indicator that combines automated market structure mapping, momentum heatmap candles, and institutional trade execution tracking.

Adaptive MACD is a dynamic momentum indicator that adjusts its smoothing based on market conditions. It calculates a Pearson correlation coefficient between price and bar index over a user-defined period, then uses the resulting R² to blend two different MACD coefficient sets. This makes the MACD line more responsive during strong trends and smoother in sideways markets. The indicator plots a color-coded histogram (strong/weak bullish/bearish) and an optional auto-contrast MACD line that adapts to the chart background. Inputs allow customization of the R² period, fast/slow lengths, signal period, and colors. Suitable for trend-following and detecting momentum shifts.

Support Resistance zig zag based is a Price Action indicator designed to automatically and dynamically map Support, Resistance, and transition areas (Flip Zones) on the chart. It focuses purely on clear price structure mapping and highlighting key bounce areas (SBR & RBS). It also includes an interactive dashboard to monitor real-time market bias.

Market Structure Shift (CHoCH) Bullish Setup (CHoCH ): Price breaks above the previous confirmed Lower High (LH), signaling a trend reversal from bearish to bullish. Bearish Setup (CHoCH ): Price breaks below the previous confirmed Higher Low (HL), signaling a trend reversal from bullish to bearish.

The Auto ZigZag Fibonacci Golden Zone indicator automatically detects the latest swing high and low, draws key Fibonacci retracement levels (50%, 61.8%, 78.6%), and highlights the Golden Zone between 61.8% and 78.6% as an optimal pullback entry area. The indicator includes a real-time dashboard, optional buy/sell signals, and full color customization. Works on all symbols and timeframes. Always test on a demo account before live trading.

Builds a horizontal volume histogram over a recent lookback window and marks the Point of Control and Value Area using the standard TPO/volume value-area expansion algorithm — not just POC ± a fixed offset. Refreshed once per new bar, drawn as a sidebar next to price.

Asian range indicator with breakout levels for the London session. Entry arrows, alerts, push notifications. Optimised for XAUUSD M15.

Marks fractal swing highs/lows as liquidity levels, then flags the exact bar where price wicks beyond one and closes back inside — a liquidity sweep / stop hunt — with an arrow and an optional price label. Sweep checks run only on closed bars, so signals never repaint.

This allows mt5 chart to scroll like tradingview chart with auto button to reset

Detects 3-candle Fair Value Gaps (price imbalances) and draws them as boxes that extend live until price trades back through the gap. Detection runs only on fully closed bars, so gaps never flicker in and out as the current candle forms.

simple coundown timer

SMC Pullback marks swing highs and lows using the pullback definition instead of the usual 3-candle pattern. A high is confirmed only when price trades back through the low of the candle that made it — so every marked point is an actual rejection, and highs and lows always alternate. It evaluates closed bars only and never moves a marker once drawn, so it does not repaint. Two buffers expose the confirmed swing prices to an EA via iCustom.

Estimates the rolling Hurst exponent of price via rescaled-range (R/S) analysis and plots it as a color-coded oscillator that flags whether the market is currently trending, mean-reverting, or moving like a random walk.

A compact on-chart panel showing the current symbol's trend across several timeframes at once, each evaluated independently with its own Fast/Slow moving-average cross. No switching charts to check "what's H4 doing" — it's all in one place, color-coded.

A Fisher Transform oscillator built from statistical first principles — normalizing price into a bounded range, then applying a logarithmic transform to produce sharp, well-defined reversal signals instead of the gradual turns typical of conventional oscillators. Internal recursive state is handled through proper calculation buffers for reliable, correct behavior across backtests. From the article series "Making Custom Indicators for Beginners."

A custom SuperTrend indicator built from first principles, combining an ATR-based volatility band with a ratchet mechanism to produce a clean, non-repainting trend line. Internal recursive state is managed through properly registered calculation buffers, avoiding the state-loss bugs common in manually-managed array implementations. From the article series "Making Custom Indicators for Beginners."

Professional MQL5 indicator (separate window) that automatically scans multiple symbols and timeframes, detects the most recent valid Wolfe Wave patterns (bullish/bearish), displays them in an interactive dashboard, and allows one-click chart opening with full pattern drawing.

Tracks the Asian, London, and New York session ranges, locks each one at session close, and flags true liquidity sweeps — a wick that pierces a locked high or low and closes back inside it — with an arrow signal and a shaded reaction zone. Non-repainting, works on any symbol and timeframe.

A subwindow oscillator that flags thin-participation displacement bars as "liquidity voids" and scores 0–100 how quickly price re-fills each one, distinguishing fast-absorbed noise from levels still acting as real support or resistance.

Ranks the 8 major currencies by relative strength on a live on-chart panel, calculated from the average percentage change of every available cross pair — not just USD pairs — so weak/strong currencies are visible at a glance, independent of whichever chart you have open.

Converts the body-to-wick makeup of every candle into a bounded conviction reading, then smooths it into an oscillator that flags buyer/seller pressure and automatically marks divergence against price.

Tracks the rolling correlation between the current chart symbol and a chosen reference symbol, and flags the moment they decouple while their price spread is statistically stretched.

Builds a rolling, volatility-adaptive volume profile over a configurable lookback window and plots the Point of Control (POC), Value Area High/Low, and statistically significant High/Low Volume Nodes (HVN/LVN) directly on the chart.

A normalized order-flow oscillator that estimates buy/sell volume pressure per bar, accumulates it into a rolling delta, and automatically flags regular bullish and bearish divergence against price swings.

Plots a volume-weighted, volatility-normalized oscillator that flags impulse and exhaustion conditions as price stretches away from its rolling VWAP

BMP Chart Wallpaper Background for MT5

A two-stage adaptive moving average (base average + secondary smoothing) that colors itself by slope and marks price/average crossovers with arrows.

Reverse RSI Bands is a leading indicator that mathematically reverse-engineers the RSI formula. It plots precise target price bands directly on the main chart, showing exactly at what price the RSI will hit your specified overbought or oversold levels in real-time.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146