Watch how to download trading robots for free
Find us on Telegram!
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

Positions are opened pseudorandomly. In case of loss (closing by Stop Loss and negative profit), Martingale is applied.

Oscillator of polynomial regression slope.

An indicator of relative trend strength.

Indicator WAMI allowing changing the timeframe of the indicator in its input parameters, the space between the oscillator and its signal line being filled in color, according to the trend direction

Historical Volatility Bands that are constructed using average as the middle line, and upper and lower bands using the Parkinson's historical volatility (instead of "regular" Historical Volatility) for bands calculation.

Three Bollinger Bands channels based on one moving average AbsolutelyNoLagLwma, drawn as a colored cloud, with the display of the last values as price labels and the possibility to round Bollinger levels up to a required number of digits.

BOP

BOP (Balance of Power) is an oscillator that allows you to assess the powers of buyers and sellers on the market and identify the trend reversal within a proper time.

The EA based on single iMA (Moving Average, MA) indicator signals.

The EA is based on two iMAs (Moving Average, MA) and iMomentum (Momentum) filter crossing.

The signal and information indicator Williams Thrust is based on two Williams' Percent Range indicators with different periods and their average values.

The Delta indicator draws two lines: the bar average price line (OHLC)/4 and the line of the decimal logarithm of the current to previous (OHLC)/4 prices ratio.

The DHLBO (Dynamic High/Low Band Overlay) indicator shows on the price chart two bands calculated based on the range Highs/Lows.

An Expert Advisor based on iRSI (Relative Strength Index, RSI).

Trend Envelopes indicator that uses Standard Deviation for the price change calculation and is adding prices smoothing prior to be used in calculations.

The TMAGi indicator

An Expert Advisor based on iMA (Moving Average, MA) and iMomentum (Momentum).

OBOS indicator

Rsi of average - with normalized zones

Short description

Pivot Oscillator

Double smoothed stochastic Blau

Three ATR Bands with multiple selection

Indicator 3 in 1 MTF Stochastic with MA Smoothing options

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.

1...616263646566676869707172737475...183