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

Submit your code

Working with pending Stop orders

Extended normalized RSI

This script will export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. Current version 1.0 does not add the takeprofit and stoploss. Any advice to improve this is welcomed.

Discontinued signal line CCI using average of price for filtering signals

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

Moving Average indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe). Includes: SMA, EMA, SMMA, LWMA, AMA, DEMA, TEMA, FRAMA, and VIDYA

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.

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.

The indicator builds the trajectory of the front linear regression and standard deviation points.

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 trading system based on the signals taken from the BuySell semaphore, signal, trend indicator

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 Expert Advisor on the breakthrough of the range defined by the signals of the Narrowest Range Signal indicator. Handling stop orders

This Expert Advisor works with Neural Network method

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.

The ROC indicator smoothed by Laguerre filter drawn as a color histogram.

The indicator changes the bar color to the color of the current trend calculated based on the RSI technical indicator.

The indicator colors candlesticks based on the highs and lows of previous bars.

Volume indicator.

This Expert Advisor is based on signals generated by the Simple Trading System semaphore arrow signal indicator.

The BWImp-T01 indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Smoothed ColorZerolagTriX indicator rate of change represented as a colored histogram.

The Exp_ColorZerolagTriXOSMA Expert Advisor is based on the ColorZerolagTriXOSMA histogram change of direction.

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

The XCCX indicator implemented as a sequence of candlesticks.

The ColorSchaffTriXTrendCycleCandle indicator implemented as a sequence of candlesticks.

This indicator is an example of smoothing the TriX indicator timeseries by filtering high-order harmonics.

1...616263646566676869707172737475...183