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

Submit your code

An Expert Advisor based on iRSI (Relative Strength Index, RSI).

Trend Envelopes indicator that uses Standard Deviation for the price change calculation and is adding prices smoothing prior to be used in calculations.

An Expert Advisor based on iMA (Moving Average, MA) and iMomentum (Momentum).

OBOS indicator

Rsi of average - with normalized zones

The indicator displays two indicators ATR with different averaging periods in a single window.

Pivot Oscillator

Double smoothed stochastic Blau

Three ATR Bands with multiple selection

Indicator 3 in 1 MTF Stochastic with MA Smoothing options

Working with pending Stop orders

Classical Sudoku puzzle right in MetaTrader chart.

Indicator "The 2 Pole Butterworth Filter". was created by John Ehlers ("Cybernetic Analysis For Stocks And Futures", p. 192)

Official example involve complex wrapper classes, Here is a simple one

Color Parabolic 2. The color depends on the acceleration factor.

This robot uses a random number generator to simulate simply tossing a coin to decide on the direction of each trade. It provides an example of a minimal expert advisor programmed in an object-oriented style. It also provides a basis for quantifying the value added by alternative methods of entry.

It plots the bar-averaged price charts (median price).

It uses the values of ADX indicator for trading.

This code is a template of an Expert Advisor, written by Valery Mazurenko (notused) for ATC-2010.

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Ergodic MACD Oscillator by William Blau.

Stochastic Oscillator equivalent with a minimum lag.

Moving average indicator based on parabolic approximation of price.

Multi-currency trend following expert system using the Triple Exponential Moving Average technical indicator.

This indicator is designed for measurement of a financial asset price change periodicity. Cycle Period allows to create adaptive versions of oscillators.

Function module for more convenient font selection display in the indicator input parameters. To free the indicator user from the necessity to manually enter a font name some changes to the code should be inserted.

Bollinger Bands displayed as colored background.

The CandleTrend indicator displays price movement directions from six different timeframes.

The Expert Advisor tries "to catch" rollbacks after a strong movement. Candlestick analyses is used

Bill William's magic oscillator (Awesome oscillator) which is drawn on the high and displayed on the low timeframe.

The Exp_CoeffofLine_true Expert Advisor based on the CoeffofLine_true indicator. A signal to perform a deal is formed at bar closing, if the histogram breakthroughs its zero level

The indicator uses in the calculation the deviation of its previous value from price

The Moving Average that represents itself a linear combination of the EMA smoothing series by the Exponential Moving Average (EMA).

The trading system based on change of the trend direction and force of the trend displayed by the ColorXADX indicator.

The RMI (Relative Momentum Index) indicator is an improved version of RSI, momentum is included in the calculation.

William Blau's Directional Trend Index in the form of a colored histogram.

A version of the Fisher Transform indicator implemented in the form of a color histogram.

An indicator based on the crossover of two momentums with different periods, drawn in the form of a colored cloud.

1...747576777879808182838485868788...191