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 - 23

Submit your code

The TradeReportExporter script is designed to export the history of trades (trades) into a convenient CSV file. It automatically collects data on all trades for the last year for the instrument it is installed on. The file includes such data as date and time, transaction type (buy/sell), price, volume, commission and profit/loss. The result is saved in a file that can be opened in Excel or any other spreadsheet editor.

This indicator picks up the divergence points of the DeMarker indicator

This indicator calculates and displays the Exponential Moving Average (EMA) on the MetaTrader 5 chart. Fully customisable period. Allows selection of the applied price (Close, Open, High, Low, Median, Typical, Weighted). Uses the standard EMA formula, initialised from an SMA of the first bars. Can be used as a standalone technical analysis tool or integrated into automated trading systems for trend-following and moving average crossover strategies.

An advanced order flow engine that approximates tick-by-tick aggressor data to calculate the true Cumulative Volume Delta, it exposes institutional absorption and divergence hidden within standard price candles.

This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

Class for the calculation of the ENUM_STATISTICS enumeration parameters

An indicator of technical shapes by Merrill. М & W Wave Patterns by A. Merrill.

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. The moment, when NonLagDot indicator changes its color, indicates the time for market entry.

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.

This indicator is the conversion of famous Igorad's indicator namely PriceChannel_Signal_v1 with re-enter feature.

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

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"

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.

MT5 version of the indicator https://www.mql5.com/ru/code/25465

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.

Adaptive Momentum from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading".

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.

1...161718192021222324252627282930...199