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

Submit your code

Gann high/low activator JMA

Skyscraper_Fix_x10 shows the direction of Skyscraper_Fix indicator signals from ten different timeframes from the bar defined in the indicator input parameters

An EA based on indicator iBands (Bollinger Bands, BB). It places pending Stop orders.

ATR adaptive Laguerre RSI

Momentum of average with dynamic levels

Directional smoothed momentum (momentum of averages)

A trading system based on the signals of indicator i-KlPrice_Vol

An indicator that shows buy and sell signals of three indicators (iSAR, iWPR, and iMA) on nine timeframes with full settings

A redrawing channel, which looks into the future by a certain amount of bars specified in the appropriate input parameter

Center of Gravity - extended version

Three timeframes RSI Average

Rsi slope divergence

Indicator Multi timeframes Stochastic RSI

Super smoother RSI

Adaptive Movinga Average - generalized version

First script selects symbols having spread below specified value on the marketwatch, then opens corresponding charts by appyling timeframe and template stated.

Just for experiment and to demonstrate the possibilities of Canvas. The price is drawn in the polar coordinate system by winding circles.

Alerts on engulfing bar below or above rsi levels

The ColorCandlesDaily indicator draws candles with different colors depending on the day of the week.

TEMA can be used instead of traditional moving averages. It can be used for smoothing price data, as well as for smoothing other indicators.

The Multicurrency Expert Advisor.

Trade signals based on "Bullish Harami/Bearish Harami" 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.

The indicator shows the moments of the market acceleration. Besides, it indicates appropriate time for buying, selling and market exit.

Comparative study of sorting algorithms.

The script calculates candles statistics (the minimal, maximal and average values of candles body and shadows) of the current chart.

A simple script that allows you to open a Short position using the current price location with a specified Risk Percentage and Reward Ratio.

The linear regression line with data placed in the indicator buffer.

A multi-currency trading system, based on Bollinger Bands and trend catching technique. Capable of trading up to 6 currencies simultaneously. System has build in optimization parameter sharing.

The indicator shows information about size of candle in pips and size of the shadow too.

The indicator of price levels with round numbers 00, 20, 50, 80.

Trading system using the Ozymandias indicator.

Another version of the RSI using smoothed prices.

The Exp_SilverTrend_Signal_ReOpen trading system based on the signals of the SilverTrend_Signal indicator with scaling by the trend.

Trading on a new bar only. The rules are simple: if MAIN_LINE MACD (1) > MAIN_LINE MACD (2) -> Buy, if MAIN_LINE MACD (1) < MAIN_LINE MACD (2) -> Sell". When a signal opposite to open positions is received, close all positions.

An simple Indicator displaying daily opening line.

Trading by RSI and Moving Average. Moving Average is used as a trend filter on H1.

The MFI normalized indicator

This indicator is a combination of moving average and ATR indicators.

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Moving average indicator with the linear regression smoothing algorithm.

1...444546474849505152535455565758...188