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

Submit your code

Trading on several candlestick patterns. The levels of Take Profit, Stop Loss, and Trailing are separate for BUY and SELL.

Oscillator Notis% V measures the market volatility, based on the difference between the intraday High and Low.

Two identical trading systems based on the signals of BrainTrend2_V2, for long and short trades, which can be configured in different ways within one Expert Advisor.

Indicator Speed of Trade

An indicator that draws the CaudateXPeriodCandle candlestick sizes in points.

The EA performs initial opening in both directions. Then it tries to pull the remaining side into profit.

Parabolic Stop And Reverse as an oscillator

The trading system based on CandleStop_System indicator signals with the possibility to set a fixed position holding time.

An Expert Advisor based on the iWPR (Williams' Percent Range, %R) indicator with the operation time control.

Keltner Channel calculated as Non Lag MA +- ATR distance for the bands.

The indicator DHLPBO (Dynamic High/Low Percentage Band Overlay). Unlike DHLBO, which displays two bands calculated based on the Highs/Lows of the range, this indicator constantly narrows the channel width by a certain percentage throughout the whole range.

The Center of Gravity Channel indicator

Trading the trend - histogram

Double smoothed MACD Stochastic indicator

Bollinger Bandwidth Delta oscillator

Average from MA indicator

Two identical trading systems (for long and short positions) based on the signals of the VortexIndicator indicator, which can be configured in different ways within one Expert Advisor

The indicator based on three moving averages

SAR Oscillator 2 indicator

The Expert Advisor uses iMA (Moving Average, MA), iAO (Awesome Oscillator, AO) and custom Laguerre indicators.

MinMax indicator

Vortex Trend indicator

RSI_X20 indicator is able to color each line depending on its position relative to overbought and oversold areas

The Ultimate Oscillator indicator

The MA Slope indicator

RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.

Double smoothed stochastic of ratio

Three timeframes RSI Average

Correlation angle

Class for comparing two floating point variables.

A wick engulf candlestick pattern

This code block loops through all opened position and do trailing based on Ask and Bid prices.

A simple indicator which may help you in manual backtest by just moving a vertical line to show hide bars.

Trade signals based on "Bullish Harami/Bearish Harami" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Arrows&Curves shows signals to open and close positions.

The fan based on the five T3 moving averages for trend indication.

ZigZag allowing to build Fibo fans on the last two ZigZags.

The indicator allows to work with changing in real time and mirror reversed (1/X) trading instrument.

The indicator creates areas of preferable stop-losses location for long and short positions at any time.

Empirical mode decomposition of the current symbol.

1...656667686970717273747576777879...184