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

Top MQL4 and MQL5 source codes based on user ratings - 64

Submit your code

Indicator Stochastic Overlay

Indicator Multi timeframe Gann Hi Lo Activator

Indicator Smoothed ADX

The script calculates the autocorrelation and partial autocorrelation functions and displays them on a graph

MACD Divergence indicator

This indicator is based on simple MACD but allows you to choose also timeframe of indicator, different from current. You can choose current timeframe of chart (then indicator shows the same values as common MACD) or any higher timeframe.

The MACD oscillator with zero lag.

There is a Price Channel indicator, but I don't like it, because it fills all the space between the upper and lower boundaries. This version of Price Channel looks like in MetaTrader 4.

Trade signals based on "Hammer/Hanging Man" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_COLOR_ARROW drawing style plots the color arrows (symbols from Windings font).

Fast Adaptive Trend Line (FATL) is based on the low frequency digital filter.

The Mass Index is intended for detection of trend reversals based on changes in the bandwidth between the highest and the lowest prices.

Simplified Ichimoku indicator (Ichimoku Kinko Hyo) containing only the cloud.

CBullsBearsOnArray class is designed for calculation of Bulls Power and Bears Power values on indicator buffers. The example of use of the class is provided.

The indicator displays the price location within a specified range.

USDX is an index which measures the dollar's value against a basket of six basic currencies

The trading system based on the signals taken from the CMO oscillator

Weighted Moving Average with a minimal lag using a damping cosine wave as the line of weight coefficients

The class is designed for calculation of the technical indicator Moving Average Convergence/Divergence (Moving Average Convergence/Divergence, MACD) using the algorithm of the ring buffer.

Variation on the non-trivial linear combination of stochastic oscillators

An Expert Advisor based on two indicators - Renko Line Break and RSI. It trades stop orders.

Another version of the indicator that calculates support/resistance levels.

Three Relative Vigor Index indicators from three different timeframes displayed on the same chart.

The indicator draws rectangle candlesticks of a higher timeframe based on the values of the BrainTrend2 indicator.

The TRIX indicator uses Tilson averaging.

This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.

A semaphore signal indicator that uses divergence between two WPR oscillators based on extreme points of the last five bars.

The HullTrend_HTF_Signal indicator shows the trend direction or the signal based on the HullTrendSign indicator.

The r_Gator indicator with the timeframe selection option available in the input parameters.

The Begin_Trend_v01 indicator with the timeframe selection option available in the input parameters.

The Beginner_HTF_Signal indicator shows a trend direction or a signal generated by the Beginner indicator.

Cloud indicator, the envelopes of which represent the RSI oscillator values calculated for High and Low prices.

The ColorJMomentum indicator with the timeframe selection option available in the input parameters.

The Flat-Trend indicator with the timeframe selection option available in the input parameters.

The CCI oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

The GRFLeadingEdge indicator with the timeframe selection option available in the input parameters.

The Exp_DecEMA Expert Advisor is based on the reversal of the DecEMA moving average direction.

The Exp_i-BandsPrice Expert Advisor is based on the i-BandsPrice histogram breaking through the overbought and oversold levels.

The Exp_i-KlPrice Expert Advisor is based on the i-KlPrice histogram breaking through the overbought and oversold levels.

Simple TP/SL panel for MetaTrader 5.

1...575859606162636465666768697071...195