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

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

Submit your code

Historical Volatility bands constructed using average as the middle line, and upper and lower bands using the Historical Volatility high/low (instead of "regular" Historical Volatility) for bands calculation.

Indicator CaudateXPeriodCandle in the main chart, highlighting with colored points caudate candlesticks of the "Hammer" and "Reversed Hammer" types only.

Virtual Trailing Stop.

Candle amplitude indicator

Compared to the Volume Zone Oscillator indicator, this version is additionally using floating levels to determine the trend.

The Dinapoli Preferred Stochastic indicator uses the smoothing method described by Joe DiNapoli, which differs from the standard stochastic.

Stop loss and take profit initial setting. Trailing.

Elder Impulse System indicator

An Expert Advisor based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). Averaging positions, in case of a loss. Improvement of the version 1.0

This indicator enhance the functionality of the standard crosshair of MetaTrader adding the difference in Percentage and the time span in a human readable form (not in bars, but in Hours, minutes, days, etc)

Separate the construction of a complex object from its representation so that the same construction process can create different representations.

The first really 3D indicator "Moving Average".

Create objects by copying a prototype

Smooth Algorithms - Corrected/Modified

to display trade history files(.csv) on charts.

The Gator Oscillator is based on the Alligator and shows the degree of convergence/divergence of the Balance Lines (Smoothed Moving Average).

The CGV class simplifies the work with global variables of MetaTrader 5 client terminal.

It's an oscillator of the overbought/oversold market conditions. It can also be used as the Momentum indicator. Triple smoothing is used for removing the cyclic components in price movements with the period less than that of TRIX.

This indicator uses the Nearest Neighbor clustering technique, also called k-NN, to search for the most similar pattern in history and use its past prices as predictions of the current pattern future prices.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

Trade signals based on "Bullish Harami/Bearish Harami" 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 hybrid of digital and analog filters that displays its larger timeframe values at a smaller one.

The indicator displays the crossing points of RSI (Relative Strength Index) indicators belonging to various periods.

The indicator creates fractals from another larger timeframe on a current chart based on Fine_Fractals indicator data.

The channel based on ATR (Average True Range) technical indicator deviations from the moving average.

Script to create wide screenshots.

Multicurrency multitimeframe indicator.

Initial library of combinatorics functions.

The class is designed for calculation the technical indicator Efficiency Ratio (Efficiency Ratio, ER)using the algorithm of the ring buffer.

The class is the simplified version of the CArrayRing class: it has a predetermined fixed size of 256 elements, it is faster, and allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

The class is designed for calculation of a technical indicator Money Flow Index (Money Flow Index, MFI) using the algorithm of the ring buffer.

This indicator will plot divergence lines on the MACD indicator and will give buy and sell signal by displaying green and red arrows.

A trading system using the AltrTrend_Signal_v2_2 semaphore signal indicator.

The ZZLevels indicator uses the Simple ZigZag to find the boundaries of the flat, as well as the support and resistance levels.

Night scalper, trades until 0 am terminal time within a narrow range.

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

The Exp_Delta_MFI Expert Advisor is based on the Delta_MFI indicator color change.

GMA

Geometric Moving Average.

MetaCOT 2 CFTC ToolBox Indicators is a set of MetaCOT 2 indicators that provide access to CFTC reports. MetaCOT 2 supports COT, Disaggregated COT, TFF and CIT reports. It allows to draw COT charts straight in the MetaTrader terminal. All indicators are available as source code, and anyone can use them to create their own trading system.

ADXVMA uses a sort of ADX values for determining the weights of average calculation.

1...242526272829303132333435363738...188