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

Submit your code
VA

The Velocity/Acceleration indicator.

Rsi(var) indicator with zero lag DEMA.

Regularized EMA by Cris Satchwell.

An indicator that draws the XPeriodCandle candlestick sizes in points.

Trend-following indicator LeManStop is a representative of system LeMan and displays Stop Loss levels for the existing positions in the chart. It draws two Stop Loss lines for Long and Short positions, displayed in different colors.

The Investor Preference Index indicator

The Trend Risk indicator

LBR Paint Bars indicator

The HLCrossSigForRSI is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading

Indicator Volatility Ratio2

Opening an opposite position when reaching a profit of N pips

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

The Multi timeframes RSI indicator

An Expert Advisor for two currency pairs

CCI of average - floating levels

Deviation scaled MA with self adjusting levels

The indicator displays the information on the current trends, using the ColorPEMA_Digit indicator colors from ten different timeframes

Vervort's crossover - histogram version

Adaptive Moving Average - AMA - with filter

Trix oscillator with support / resistance lines on chart

QQE of Rsi(oma) - on chart

Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

converted stdlib library for MQL5 from the MQL4

How to minimize bool parameters in a function signature?

This script opens randomly selected charts and applies user-defined template.

The ColorLine indicator shows the line of the price moving average on the chart. The line has diffrent colors (100 bars has the same color). The color settings of the line is changing every 5 ticks, there are 3 color schemes.

The Fractal is one of 5 indicators of Bill Williams’ trading system, which allows to detect the bottom or the top.

The Price Channel Indicator draws the price channel, its upper and lower boundaries are determined by maximal and minimal prices for a certain period.

QQE - Qualitative Quantitative Estimation MA on RSI, Difference of MA on RSI and MA of MA of ATR of MA of RSI

Simple example of use of the DRAW_ZIGZAG drawing style.

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_COLOR_HISTOGRAM2 drawing style is used to plot color histograms using two indicator buffers, the colors are specified in the color buffer.

Using JMA adaptive moving average is the best way to smooth price ranges with a minimum time lag.

The indicator generates signals for entering the market.

Symmetric Darvas Boxes for Forex.

Stochastic RVI is a standard Stochastic Oscillator applied to the values of RVI (Relative Vigor Index) indicator instead of a price.

BrainTrend1 and BrainTrend2 are placed in one minimized window to remove excessive elements from a chart workspace. BrainTrend1 (upper square dots) is a basic trend indicator, while BrainTrend2 (lower round dots) is a confirming indicator.

The CVidyaOnArray class is intended for calculation of VIDYA (Variable Index Dynamic Average) on an indicator buffer.

Good old stochastic oscillator. The difference from the standard one is that it shows overbought and oversold areas in a more visually convenient fashion.

Pair trading. Hedging. Market-neutral strategies.

1...727374757677787980818283848586...203