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

Submit your code

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

Normalized MACD.

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

The indicator draws i-OneThird indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

The TriX indicator in a candlestick form with the Keltner channel calculated relative to TriX averaging.

Keltner Channel built relative to the average value of the OsMACandle oscillator as a sequence of candlesticks

A script for placing a SellLimit order

The channel is based on a percentage price deviation. It is implemented with a color background filling. The channel width is controlled by the percentage deviation.

The strategy is based on the ZigZag indicator and pending orders.

Dynamic Moving Average.

Usually most brokers do not provide M1 data over 3 months in MetaTrader 4, but they provide M1 data over 3 years in MT5. So we can use this tool to obtain the M1 data in MetaTrader 5 tester and save the data into .hst file for MetaTrader 4 backtesting.

The Expert Advisor uses the Fractals indicator signals to place pending orders and trail the Stop Loss level of positions.

This non-trading utility generates custom symbol information on 1M chart. Configure using Tick Size, Pip Size, Points or R. Now with Asymetric Reversals!

Schaff Trend Convergence Divergence indicator has the benefit of putting the Schaff Trend CD on a scale of zero to 100, making it easier to identify potential overbought and oversold levels in a currency trend and is using RSI for a final calculation.

The "RocketRSI" indicator by John F. Ehlers. Used to indicate strong probabilities of cyclical reversals.

Indicator MultiBrainTrend2_V2_x10 shows information on the current trends, using the colors of indicator BrainTrend2_V2 from ten different timeframes.

An Expert Advisor for closing all positions, in case of the total profits on those positions exceeded the Take Profit level fixed in inputs, or where it is necessary to close all positions beyond the time interval fixed in the settings.

CCI of average

Export tool for OHLC prices, calculated prices & indicator buffers

The Alligator Indicator is a combination of Balance Lines (Moving Averages).

The indicator prints the time to close of the current timeframe, if it less than H1, it also prints the time to close of the current hourly bar.

A simple XML-parser, based on the msxml library.

The indicator plots Pivot levels for all available history. There are 5 variants of Pivot levels is supported: Classic, Fibonacci, Demark, Camarilla, Woodies. There are 3 calculation periods: daily, weekly, monthly. For the daily pivot levels it's possible to specify the GMT time shift.

This indicator fits a trigonometric model to prices and extrapolates it in the future.

The API functions to Free Fuzzy Logic Library.

Trade signals based on crossover of lines of the Alligator technical indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The indicator generates buy and sell signals using colored dots on a chart and displays messages.

The indicator of the ratio between fast Average True Range (ATR) and slow ATR.

The current time position in relation to the beginning and the end of the bar is shown. In addition the ratio between the time passed since the beginning of the bar and the whole bar duration expressed in percents is given. It is useful for choosing the moment of making a trade decision.

CMAOnArray class is used for Moving Average calculation on indicator buffer's data. The example of use of the class is provided.

Heiken_Ashi_Smoothed_HTF_Signal displays trend direction as a sequence of graphical objects, the trend is determined by Heiken_Ashi_Smoothed indicator.

Trading signals module for MQL5 Wizard. The moment, when NonLagDot indicator changes its color, indicates the time for market entry.

This is a simple but very fast ZigZag with no suspended or wrong peaks. The indicator is designed for use in EAs. Peaks retrieval has been time-optimized.

The MultiCurrency indicator allows you to concurrently analyze up to eight currency charts.

The file selection graphical interface class.

The Balance of Power (BOP) indicator was described by Igor Livshin and measures the strength of the bulls vs bears by assessing the ability of each to push price to an extreme level.

The class realizes generalized regression network (General Regression Neural Network - GRNN)

The class is designed for calculation the technical indicator Stochastic Oscillator (Stochastic Oscillator) using the algorithm of the ring buffer.

The indicator counts Bull and Bear candles in Bar_Period bars and calculates percent.

This class is designed for creating interactive buttons with various states on a price chart.

1...151617181920212223242526272829...190