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

Submit your code

New version of non-repainting step stochastic indicator.

The Expert Advisor places two pending orders at a certain time.

SnakeInBorders calculates the channel of a filtered market, which is limited by two borders BorderTop[] and BorderBot[], and it calculates the signal Mart[].

The TDI-2 indicator with the timeframe selection option available in input parameters.

The ThreeCandles indicator, which features alerts, sends emails and push notifications.

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

The Asymmetric Trend Pressure indicator shows the trend direction and strength line. It can additionally show the bullish and bearish components of the trend.

The EA trades using the signals of iADX (Average Directional Movement Index, ADX) and iSAR (Parabolic SAR) indicators. The profit/loss of the last closed position is taken into account. Positions are moved to breakeven.

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

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.

1...646566676869707172737475767778...194