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

PS Magicas - Three moving averages that give target and possible entries.

A trading strategy "three bars down, Stochastic up".

The Expert Advisor uses the signals of "crossover of two iMAs (Moving Average, MA)". The EA uses Trailing Stop and Take Profit.

Bollinger Bands in the form of an oscillator.

The indicator displays the ratio of two LSMAs.

Sherman and Marian McClellan Advances/Declines Indicator.

Sherman and Marian McClellan Summation Index.

Linda's Coil - an indicator of "engulfed" candlesticks.

A trading system based on indicators MACD and SAR. The signal receiving formula is completely optimizable.

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

Synthetic VIX indicates the increase or decrease of volatility and it should be used as that.

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.

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

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.

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

OBOS indicator

Rsi of average - with normalized zones

The indicator displays two indicators ATR with different averaging periods in a single window.

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

Indicator "The 2 Pole Butterworth Filter". was created by John Ehlers ("Cybernetic Analysis For Stocks And Futures", p. 192)

Official example involve complex wrapper classes, Here is a simple one

Color Parabolic 2. The color depends on the acceleration factor.

This robot uses a random number generator to simulate simply tossing a coin to decide on the direction of each trade. It provides an example of a minimal expert advisor programmed in an object-oriented style. It also provides a basis for quantifying the value added by alternative methods of entry.

It plots the bar-averaged price charts (median price).

It uses the values of ADX indicator for trading.

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.

1...727374757677787980818283848586...190