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

Submit your code

A multi-currency (10 currency pairs) Expert Advisor that does not use indicators.

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

Trading system based on StepMA_NRTR indicator signals.

Trading system based on SuperTrend indicator signals.

The Volume_Weighted_MA indicator implemented as a sequence of candlesticks.

The EA trades based on the "Bullish and Bearish Engulfing" pattern.

Oscillator using inverse Fisher Transform.

The Momentum indicator implemented in the form of a color histogram.

The EA trades using signals of the iMACD (Moving Average Convergence/Divergence, MACD) indicator. Lot is increased when the number of position grows (Martingale)

A semaphore signal indicator using the XRSX oscillator, which is similar to BykovTrend with an NRTR line based on the values of the ATR indicator.

The indicator searches for a sequence of candlesticks on a chart and marks bullish and bearish sequences.

An indicator for automatic drawing of trendlines based on fractals of a given timeframe.

SMI

The Smart_Money_Index indicator

Schaff Trend RSX is "a smoother RSI" without a lag, in this version RSX is calculated instead of RSI. That makes the slope much smoother and produces significantly less color (slope) changes.

Indicator EMAVFS_channel with the timeframe selection option available in input parameters.

Smart Money Pressure Oscillator

In CCI T3 Base indicator average is replaced with T3 and the deviation is replaced with EMA deviation.

Normalized RSI tries to fix the "RSI problem": the longer the calculating period, the flatter the RSI becomes.

Checking a trading system: Close > Open → BUY signal, Close < Open → SELL signal.

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

XRSI_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

The Expert Advisor based on iCCI (Commodity Channel Index, CCI) indicator.

The library allows receiving a magic number bound to three elements: symbol name, timeframe and prefix index.

DSL Balance of market power JMA

Toby Crabel NR Pattern indicator

XWPR_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

Average Percentage True Range indicator

Coral indicator

Premium stochastic oscillator

Indicator POGO

Simple volatility

RSi (var) - Hull average

The XFisher_org_v2_Candle indicator with the timeframe selection option available in the indicator input parameters

Spearman rank correlation - with floating levels

The Expert Advisor is based on iCCI (Commodity Channel Index, CCI) and iMA (Moving Average, MA) indicators.

TRiX candles with Keltner channel

The SpearmanRankCorrelation_Histogram indicator with the ability to send alerts, emails and push notifications when trading signals emerge

Indicator Heiken_Ashi_Smoothed_Volatility_Volume with the timeframe selection option in its input parameters

Vervoort's crossover

McGinley dynamic average - using one of 4 types of averages

1...118119120121122123124125126127128129130131132...183