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

Submit your code

3rd Generation Moving Average

Shows the current gain and loss for the candlesticks on the chart.

Triple Exponential Moving Average with customizable parameters.

The Commodity Channel Index indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The EA looks for trend using three MAs (period 200, 50, 25 or other) and opens orders using the Parabolic SAR indicator. There is martingale in an Expert Advisor, the lot is calculated in percents from a deposit depending on Stop Loss.

A trend strategy based on moving averages with colors as in a traffic light. The purpose of writing the EA — to test the strategy on history and pick working parameters.

Signal based on the ZigZag indicator.

The script analyzes the market based on two criteria: the moving averages and the support and resistance levels.

Spread, its moving average (EMA), its maximum and minimum, and ticks per second (market speed) in the Comment. The version 1.01 is made with the normal average, instead of the moving average.

Commentary on behalf of Exponential Moving Average.

The EA closes orders when certain loss is reached by them in the account currency. It is possible to vary the loss by the volume of the order.

The signal indicator that detects potential market entry points.

Roboost is an EA for MetaTrader 4 trading using several half-scalping and traditional trade management techniques. It shall work on different pairs and TF. Target is H1 for major pairs.

This library has two functions: first to count OP_BUY positions and second to count OP_SELL positions.

Show full information: price, symbol, timeframe, date, time, spread, swap, stop out level, your name...

OpenOrder script allows you to open an order defining the % of balance to risk, the Stop Loss distance in pips and the Take Profit distance in pips and a magic number.

Small Expert which sends email notification of last opened and closed order.

Dsl (discontinued signal lines) - RSI (MetaTrader 4).

Expert Advisor for pyramiding into big and fast market movements.

Relative Strength Levy can be abbreviated as RSL.

Ichimoku EA trades with "Ichimoku " and "Parabolic" indicators,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

1H Bolinger Bands EA trades according to the "Bolinger Bands" indicator and two MA's,has Trailing Stop Loss &Take Profit works best on 1H and 4H time frame major forex pairs and stocks NASDAQ.

"Harami" trades with 2 Moving Averages and " Harami " pattern has Trailing Stop Loss &Take Profit works on 4H & 1D time frames major forex pairs and stocks NASDAQ.

"Candle Trailing Stop" EA trades with 3 MA's and uses candels for Trailing Stop Loss &Take Profit works best on 4H time frames major forex pairs and stocks NASDAQ.

high-low channel

This is strictly for daily chart and any symbol with spread low enough for its operation

With "Cycle Lines" EA you can draw Cycle Lines on the chart and trade with price breakthrough,has 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

"Triangle" EA draws 2 Trend Lines with fractals on chart and trades When a triangle is formed,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

This indicator uses various SMA to indicate a possible reversal point.

The script exports summary of closed trades grouped by each trading day to .csv file

Improved version inspired by RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Divides whole levels into Halfs and Quarters.

The indicator shows BID-ASK-SPREAD information on chart

Dynamic Pivot Indicator, provide all timeframes and extra timeframes

Corrected moving averages

An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

Low risk, max profit, winning strategy EA. Based upon Super Scalper EMAs indicator

This EA will scan all the open trades and then print the nth trade from the end

This EA will scan all the closed trades and then print the nth trade from the end

An indicator that uses a Feed Forward Neural Network to predict the next few open prices. The network is trained using a Backpropagation method. The training is set up automatically, resulting in a self-trained network and a self-learning indicator.

1...495051525354555657585960616263...105