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

Submit your code

The Paramon indicator with a color filling of the channel.

Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.

A simple trend indicator based on the RSI changes.

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

A multi-currency Expert Advisor based on the iStochastic (Stochastic Oscillator) indicator signals.

Martingale and anti-martingale.

This version of the Vortex indicator shows the difference between the VI+ and VI- lines as a histogram oscillating around the zero line.

This tool allows you to calculate the correct lot size of the next trade by following some simple money management rules.

The Percentage Price Oscillator Extended (PPO) is a technical Momentum indicator showing the relationship between two Moving Averages. To calculate the PPO, subtract the 26-day Exponential Moving Average (EMA) from the nine-day EMA, and then divide this difference by the 26-day EMA. The end result is a percentage that tells the trader where the short-term average is relative to the longer-term average.

Commodity Channel Index (CCI) is a versatile indicator that can be used to identify a new trend or warn of extreme conditions. Donald Lambert originally developed CCI to identify cyclical turns in commodities, but the indicator can be successfully applied to indices, ETFs, stocks, and other securities.

A moving average by Tim Tillson

Least Square Moving Average - a moving average calculated by the least squares method.

Integral of Linear Regression Slope (ILRS MA).

"Sadukey" indicator is an indicator combining two digital filters on a chart to give us an assessment of current trend.

William Blau Stochastic.

Calculation is based on current week open and previous week range.

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

1...636465666768697071727374757677...183