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

Submit your code

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.

This version of Elliot Oscillator allows you to chose periods of calculation.

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

Classical Sudoku puzzle right in MetaTrader chart.

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.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, 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.

Moving average indicator based on parabolic approximation of price.

Multi-currency trend following expert system using the Triple Exponential Moving Average technical indicator.

Vertical time grid with one month step.

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.

Parabolic_HTF_Signal shows a trend direction or a signal for performing a deal generated by Color_Parabolic indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

The channel based on the price percentage deviation from the previous value of the channel middle line.

Bollinger Bands displayed as colored background.

The CandleTrend indicator displays price movement directions from six different timeframes.

1...787980818283848586878889909192...195