Watch how to download trading robots for free
Find us on Twitter!
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 - 18

Submit your code

Indicator to display existent and emerging harmonic chart patterns.

The Mass Index is developed to catch the trend reversal points. It is based on changes between maximum and minimum prices. If the amplitude gets wider, the mass index grows; if it gets narrower, the index gets smaller. The mass index was created by Donald Dorcy.

Classes for working with databases through ODBC and OLE DB interfaces

One-click trading.

A class for creation and output of BMP images.

The Roulette Game.

Premier Stochastic Oscillator - Double EMA smoothing of stochastic, based on article in TASC by Lee Leibfarth (August 2008)

Crossover of overbought/oversold levels of Chande Momentum Oscillator is used as a signal to open positions.

Trading signals module for MQL5 Wizard. SuperTrend indicator's color dot serves as a market entry signal.

Graphical control for pixel drawing.

The class allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

The module for tracking open positions based on Delta ZigZag for MQL5 Wizard.

Plots up/down buffer arrows in chart window.

QWMA - "quadratic weighet moving average" new generation

Support ressitance - Barry (extended version).

Forex indicator for MetaTrader 5 with show double line of linear regression with position degrees and trend alerts.

The indicator finds fractals of any dimension.

MqlParams container class that uses method chaining to quickly add params and reduce lines of code.

A library for creating analog clocks using MetaTrader 4/5 graphical resources.

A library for common rounding methods used in MQL development, primitive wrapper class for type (double), and vector for CDouble objects. MQL5 and MQL4 compatible!

Libraries based on the article "Random decision forest in reinforcement learning"

Volume Profile + Range v6.0 (former TPO).

A base class to simplify analyzing trade transactions in MQL5.

This utility is not a trading information utility. It will only have value for those getting information on the Number of Bars that have terminal data. This utility uses the functions SeriesIntegerInfo and CopyRates to obtain and display information about the availability of bar information from the terminal.

This Indicator creates automatically a Risk/Reward Box on you all opened chart base on High, Low price with the old candles. You can use it easily to drag and change size and price to your desire wanted.

An indicator that dynamically calculates risk (in percentages and money) based on the lot size and stop loss

This Fibonacci Bollinger Bands indicator is a conversion from Pine Script (by Rashad) to the MQL5 language.

The Indicator Ichimoku Kinko Hyo is predefined to characterize the market Trend, Support and Resistance Levels, and to generate signals of buying and selling.

Sometimes this is useful - to observe the behavior of the oscillator in the channel. Greatly simplifies the evaluation of the situation.

Trend strength indicator based on the Laguerre adaptive filter.

Simple clock displayed via the "label" graphical object (OBJ_LABEL).

The CDemaOnArray class is intended for calculation of DEMA (Double Exponential Moving Average) on an indicator buffer.

CCHOOnArray class is designed for calculation of Chaikin Oscillator (CHO) values on indicator buffers. Test_CHOOnArray indicator is provided as the example of the class use.

The indicator draws a grid of eight stochastic oscillators on one chart with the possibility to change the number of displayed lines.

The candlesticks are colored in red, green and blue colors depending on a trend direction (Moving Average and MACD overall values).

Class implements neural network of radial basis functions (Radial Basis Function Network - RBFN)

The class realizes the probabilistic neural network (Probabilistic Neural Network - PNN)

The "Fast ZigZag" indicator including the drawing of DiNapoli's target levels

The indicator displays in a separate window not only volumes, but their average value on history. The average value of volumes is used for drawing the forecast of volumes value for the current and the following days

FxTrend 25EMA is based on the difference of the EMA 25 value during two different moments.

1...111213141516171819202122232425...193