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

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.

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).

The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data.

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

Library to work with Skype.

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.

The MACD Sample Expert Advisor trades at the crossover of the main and the signal line of the MACD. This Expert Advisor is an example of object-oriented approach in EA development.

The indicator draws bull and bear lines of a trend on the basis of iFractals indicator's data from the nearest extremum to the last fractal broken down.

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

A library of classes for creating a user-friendly interface of your programs.

Regular expressions provide a formal language for quick and flexible processing of texts. Each regular expression is a pattern (mask), for which the regular expression engine tries to find matches in the source text. A pattern consists of one or more character literals, operators, or constructs.

The i-CAi indicator displays the most recent value as a price label with the the possibility to round the channel levels up to a required number of digits.

The MFIdivCandle indicator. Colors the candles based on the MFI oscillator.

Trading system based on STLMCandle indicator signals.

Another variant of the ZigZag by Rosh.

Semaphore signal indicator based on the RSI indicator, which features alerts, sending emails and push-notifications to mobile devices.

ZigZag indicator with price labels of the ZigZag peak values.

T3 floating levels made as an oscillator

The version of Aroon indicator that displays colored line, bars or candles on the mains chart.

Double smoothed stochastic with some extra options

This version of RSI is "experimenting" with different ways how internally the RSI is calculated.

Rsi (7 types of RSI) with a lot of additions.

Fractal moving average with indication of the last value with a price label with the ability to change the averaging algorithm.

The Expert Advisor synchronizes the local computer time in the interval from 9:50 to 9:59 (before the beginning of the morning session) with the MetaTrader 5 FORTS server time.

The ZigZag indicator plotted using the NRTR algorithm.

The smoothed DeMark oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

A simple trend indicator based on the smoothed Average Directional Movement Index drawn in the main chart window.

A script for placing a BuyStop order

A trading system based on the ColorFisher_m11 indicator signals.

A library for working with traditional and custom symbols

1...161718192021222324252627282930...198