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

Submit your code

Adaptive ATR channel

The strategy is based on two indicators calculated on two timeframes: iAO (Awesome Oscillator, AO) on the D1 TF and iStochastic (Stochastic Oscillator, Stoh) on H1.

An Expert Advisor based on two iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)

A trading system based on three indicators iMA (Moving Average, MA) and two indicators iRSI (Relative Strength Index, RSI)

Indicator USDX vs Slope Direction Line

This utility is not a trading or market information utility. This will likely only interest those writing (or debugging) indicators using multiple timeframes and collecting information using Bars (or iBars) and CopyRates. The utility creates a list showing the number of Bars reported by the "Bars" function and shows the success of CopyRates for any selected bar by displaying that bar's time from the collected data (or, it shows the error).

Click on candlestick to see its body range, high low range, upper wick range and lower wick range value.

A simple observatory of individual currencies.

The ColorBars Indicator paints bars with different colors depending on the volume changes. If the volume has increased, the color is green, overwise the color is red.

The example of button, created using the object of OBJ_BITMAP_LABEL type.

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

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

The strategy is following: when outer (outside) bar appears, it checks the fact of the inner bar breakthrough in trend direction and generates a signal to open position. A module of trade signals is compatible with the new version of MQL5 Wizard.

Slow Adaptive Trend Line is used for suppressing market noises and market cycles with longer oscillation periods.

This indicator solves an issue of the use of digital filters in the client terminal.

Market Profile is a tool used by many futures traders for the analysis of the statistical time distribution of the price, finding a price area and control values for the day trading session. The indicator is based on the simple price movement and does not use standard MetaTrader 5 platform indicators.

The Demand Index combines price and volume in such a way that it is often a leading indicator of price change.

The library provides simple matrix operations: addition, subtraction, multiplication, inversion.

The CWPROnArray class is intended for calculation of Williams' Percent Range (%R) on indicator buffers. The example of use of the class is provided.

CCCIOnArray class is designed for calculation of Commodity Channel Index (CCI) values on indicator buffer. The example of use of the class is provided.

Two rectilinear channels of standard deviations + curvelinear channel of the parabolic regression with interpolation of a price chart future values.

The semaphore signal indicator with the values based on five technical indicators: LWMA, SMA, RSI, Stochastic, MACD.

The class is designed for calculation of the technical indicator Moving Average of Oscillator (Moving Average of Oscillator, OsMA) using the algorithm of the ring buffer.

The script for searching the maximum, minimum and average values of candlestick size

A trailing stop module based on the WPR indicator with short and long Stop Loss

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Buy Stop or Buy Limit pending order should be placed.

A trading system that uses the Candle Momentum indicator.

The indicator plots three equidistant channels with the calculation periods defined in input parameters.

The Fractal Dimension Index determines the amount of market volatility.

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

A set of Pivot levels.

Symbol for downloading the history data for the current symbol with indication of progress.

The AFL_Winner_HTF_Signal indicator shows the trend direction and the signal based on the AFL_WinnerSign indicator.

The X2MA indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Semaphore signal indicator based on the i-Sadukey_v1 digital filter.

The BinaryWave_HTF_Signal indicator shows a trend direction or a signal based on the BinaryWaveSign indicator.

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

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

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

The indicator paints candlesticks depending on the minimums and maximums of the previous bars.

1...535455565758596061626364656667...183