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

Submit your code

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.

This example shows the use of the mechanism of custom data frame transmission from agents during a brute force search aimed at finding MD5 hashes. The speed characteristics of the computing network and the progress are shown in real time. The program also demonstrates the principle of virtualization of nonlinear and non-numeric input parameters into a numeric counter.

The Volume_Weighted_MA indicator that fills the chart space with a colored background and displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits.

The Exp_i-SpectrAnalysis_WPR Expert Advisor is based on change of direction of the i-SpectrAnalysis_WPR indicator.

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

A trend indicator that uses the MACD values multiplied by the averaged price of the financial asset, made as a colored histogram.

This is an indicator that generates simulated data for any period - but in seconds

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

The Exp_Trigger_Line Expert Advisor based on signals of the Trigger_Line indicator.

Gann swingchart and hybrid ZigZag implementation.

RSI that is intended to be used as a filter.

The second version of indicator with added features.

The Expert Advisor works comparing iCCI and iMACD indicators.

Works only on the hedge accounts! Martin, martingale. Doubling the lot at loss.

1...151617181920212223242526272829...189