Watch how to download trading robots for free

Find us on Facebook!
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


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
latest | best

An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement".

The Predictive Moving Average was created by John Ehlers (“Rocket Science For Traders”, pg.212″).

A series of indicators 'Four Colors'. Signals are now 'Arrow' in the main window

An exponential moving average of the true range and the offset of its average deviation

Added alerts to custom indicator

Candlestick chart without shadows

Added alerts to custom indicator

Colored SAR indicator. Alerts on color change

The indicator draws three daily rectangles

Indicator based on iAO (signal 'saucer') and filter based on iMA

Three candles from another timeframe are drawn using graphical objects

Smoothing the custom indicator 'Relative Momentum Index' using iMA

Two indicator series ('Two MA Color N Bars' and 'Square') in one code

Displays direction of volatility and volume

The indicator plots (using OBJ_TRIANGLE) the area between 'Open', 'High', 'Low' and 'Close' of the day

A simple indicator that tries to assess autocorrelation in price series.

A series of indicators 'Square' - shows the state of the indicators in the form of lines of squares. Displays two indicators: MACD and Stochactic

iVIDYA (Variable Index Dynamic Average) indicator with levels for N bars

The indicator displays the 'Ask' line -> a spread is added to the 'Close' price

Two 'Main' lines from two iStochastic (Stochastic Oscillator, STO) indicators with filled areas between the lines. Line crossing notifications (Sound, Alert, mail, push)

Two RSI (Relative Strength Index, RSI) lines - 'Fast' and 'Slow'. Filling areas from the window borders to these lines

Cumulative candle, taking into account High and Low

Channel of 'N' bars at 'Low' and 'High' prices

Trend indicator. Added alerts (Sound, Alert, email, push)

The indicator shows the zones between the price crossing and the "MA" indicator

Histogram between price and indicator or between two indicators

The indicator shows the position of two indicators (iMA and iStochastic)

A simple indicator plotting a channel with a constant range

In a given time interval, a rectangle is constructed.

Fractals based on the iOBV indicator (On Balance Volume, OBV)

Colored Stochastic smoothed with iMA (Moving Average, MA)

Very simple indicator to plot the values of the spread[] data as reported by the OnCalculate event handler.

The indicator shows the percentage of the 'Close' price above and below the 'iMA' indicator

The color indicator shows in a separate window the moment if the intersection of two iMA (MOving Average, MA) was on the current bar

'Momentum' indicator and 'Momentum' indicator smoothed with 'Moving Average

iDeMarker (DeMarker, DeM) indicator smoothed with iMA (Moving Average, MA).

SmoothStep (generalized)


Have you ever asked yourself why it is not possible to customize fractals more? ... now it is.

The indicator compares OHLC prices