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

Submit your code

Library for sending mail messages.

The indicator displays the current Bid price magnified on the chart.

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

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

The indicator performs the calculation of the derivative of the price.

The Laguerre_PlusDi and Laguerre_MinusDi indicators in a single window in the form of a cloud

The difference between the Laguerre_PlusDi and the Laguerre_MinusDi indicators in a single window in the form of a colored histogram

The Exp_MA_Rounding_Candle Expert Advisor is based on the MA_Rounding_Candle indicator candlestick color change.

A variant of the Momentum indicator with volumes and time used in its calculations.

The KalmanFilter indicator implemented as a sequence of candlesticks.

Trading system using the ColorMETRO_Stochastic indicator.

Exp_Directed_Movement is based on the change of color of ROC2_VG indicator.

Made some changes compared to the originally Momentum Pinball

SilverTrend semaphore signal indicator features alerts, emails and push notifications.

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

Oscillator, representing the weighted smoothed sum of four indicators: Fractal_RSI, Fractal_MFI, Fractal_WPR and Fractal_DeMarker.

Trading based on the ZeroLag MACD custom indicator.

Trading based on two indicators: iAlligator (Alligator).

The Expert Advisor opens or closes positions at the intersection of lines.

An assessment is made based on the values of five indicators (Gator, WPR, AC, DeMarker and RSI). Uses trapezoidal membership functions. Before sending a trade request, it checks if funds on the account are enough.

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

This utility program records tick quotes in the CSV and BIN format. A flexible set of symbols is available for writing.

A trading strategy based on RSI and Bollinger Bands.

A trading system based on the Stopreversal indicator signals.

The script has three independent functions for determining the current FORTS futures.

An Expert Advisor based on "KDJ Indicator"

The Expert Advisor is based on Puria method with a few changes. It uses two iMA (Moving Average, MA) indicators and one iMACD (Moving Average Convergence/Divergence, MACD).

Trading signals are generated based on a comparison of two trend indicators: iMA (Moving Average, MA) and iSAR (Parabolic SAR). The EA works on the zero bar, only one position can be open. Trailing stop is used.

The indicator marks on a price chart candlesticks, which are larger than the specified size. If the candlestick size exceeds the value specified in the indicator parameters, the indicator can show an alert message.

Instead of being in a hurry to follow the price with the stop loss, this indicator is adjusting a proposed stop loss only when it notices a trend change in the opposite direction. That way, it keeps the level intact while trending, and adjusts it when it "sees" that there is a possible trend change) and gives bigger "room" for an order to survive possible whipsaws in trends. Also, since it is estimating a trend, this indicator displays the periods when there is a trend in different color(s) in order to make it easier to decided what to do.

This indicator is a MetaTrader 5 version of nonlinear regression. Nonlinear regression is very "fast" when responding to sudden market changes so the default calculation period is set to somewhat longer period than it is usual for similar type indicator. Because of that some experimenting with period is advised based on your trading strategy and trading style.

Linear regression line with an addition of standard error channel projection.

An Expert Advisor based on indicator Renko Level

Increasing a position volume. Entry signal by iDeMarker (DeMarker, DeM) indicator. Regular trailing and trailing by equity.

Grid of Stop and Limit pending orders.

Classic Donchian Channel indicator

Zero Lag RSI indicator

TRIX candles

The Expert Advisor based on the BullsBearsEyesindicator custom indicator

Working with pending Buy stop and Sell stop orders. Martingale.

1...949596979899100101102103104105106107108...193