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

Submit your code

The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments

Adaptive Moving Average (AMA) smoothed RSI

RSI of AMA - floating levels

Asymmetric bands oscillator

MT5 (MQL5) Version of Position Size Calculator - Based on VP Money Management rules This version has been tested and works in both versions; in MT4 (MQL4) as well as in MT5 (MQL5). See the original MT4(MQL4) only version here: https://www.mql5.com/en/code/23886 NOTE: I'm aware there appears to be an issue with the volume calculation and cross currency exchange rates. I'm working on fixing these issues.

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).

Trading the STRONG against the weak!

Regression Channel with variable polynomial degree - indicator for MetaTrader 5.

provides clear arrows which clearly show the direction of the currency pair.

MovingAverages.mqh Part I A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.

3 Ema moving averages identify trend change with rsi confirm

3rd Generation Moving Average is an advanced version of the standard moving average (MA) indicator for MetaTrader. It implements a rather simple lag-reducing procedure based on the longer MA period. The method was first described by M. Duerschner in his article Gleitende Durchschnitte 3.0 (in German). The presented version uses λ = 2, which provides the best possible lag-reducing. Higher λ increases similarity with the classic moving average. The indicator is available for both MT4 and MT5. It does not require using any DLL

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 "Hammer/Hanging Man" 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.

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.

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

The indicator for multi-currency technical analysis based on the related financial assets resonances.

More smoothed Momentum with colored indication of the current trend.

The DailyPivot Points indicator helps to compose a picture of market future movements, in distinct from the other tools that hang behind the market.

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 Bezier 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.

1...656667686970717273747576777879...191