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

Submit your code

Weighted deviation bands

I wanted to build a moving average which would create an alert when the price moves over the line by a user defined amount of points. It creates both bullish and bearish signals depending on the direction of market price moving through the MA. It is designed for slow length moving averages (default is 200-day MA). EDIT: I now added a second version of the indicator which uses Arrow buffers instead of ObjectCreate.

This indicator calculate count of one direction movement in selected period.

A simple signal indicator based on RSI and Moving Average. Plots Buy/Sell arrows when RSI is above/below 50 and Price is above/below the MA.

Utility MT5 EA that sends BUY/SELL deal notifications to Telegram via Bot API (WebRequest)

A candlestick chart which colors OHLC candles based on directional price momentum and news impact

MACD Multi-color Histogram

The script illustrates control of chart properties using the classes from the Standard Library (CChart).

Using Perceptron, Automatic Learning

Trade signals based on "Bullish Engulfing/Bearish Engulfing" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Symmetrical normalized CCI (Commodity Channel Index) with alternative (ultralinear and JMA) smoothing algorithms.

Stalin is one of the so-called «signal» indicators, as it provides a trader with accurate market entry points.

Superposition of RSI and DeMarker technical indicators.

Detrended Price Oscillator (DPO) shows the market overbought/oversold states and also can be used for getting buy/sell signals.

Two-pole super smoother filter from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading" is used in this indicator for moving average calculation.

The trend indicator made as NRTR (Nick Rypock Trailing Reverse).

The trend indicator that gives signals for performing deals. The indicator color depends on the market movement direction determined by the indicator position relative to the zero line.

The indicator calculates forecast prices of the daily price range. It shows resistance and support levels of current day using the prices of the previous day.

Modified CCIT3 indicator

The MultiMaRsiSignal indicator displays the information about the active trends using the five MaRsi-Trigger indicators' value from different timeframes.

Trading system using the Exp_ColorJVariation oscillator.

The advanced presentation of the Bollinger Bands indicator

This EA is based on SMA, ADX and SAR indicators.

An indicator that uses tick volume for calculations.

The MACD indicator is in the form of a colored cloud and the difference between the MACD and the signal line in the form of a color histogram.

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the direction of the BlauTSStochastic histogram.

A trading system that uses the XD-RangeSwitch semaphore, signal indicator.

CTimeControl class for include to your EA for easy setting and checking your own trading time.

The Ozymandias_HTF_Signal indicator shows the trend direction and the signal based on the OzymandiasSign indicator.

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

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

This RVI oscillator analogue is calculated based on four Relative Vigor Index indicators.

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

The ColorMaRsi-Trigger indicator with the timeframe selection option available in the input parameters.

Bollinger Bands indicator with sound/email/arrow_display alerts.

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

This indicator is an example of smoothing the Bulls Power indicator timeseries by filtering high-order harmonics.

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

The ColorJFatlAcceleration with the timeframe selection option available in the input parameters.

Trading system based on ColorJ2JMAStDev indicator signals.

1...858687888990919293949596979899...205