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

Submit your code

This CExpert subclass allows to open only long/short orders, showing its usage with an MACD example.

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

Indicator of daily price movement range. Shows the history of daily price fluctuations.

Indicator shows the size of one of the three candlestick elements: upper shadows, lower shadows or bodies. It displays the current candlestick value and the daily average value for a certain element.

Price(%)Range is the indicator for the MetaTrader 5, which calculates the price movement based on percentage High (Highest) and Low (Lowest) Price on 100 bars.

The indicator is an example of smoothing a time series of the ADX indicator by filtering harmonics of higher order.

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

The Exp_Waddah_Attar_Trend Expert Advisor is based on the Waddah_Attar_Trend indicator color change.

ZigZag based on MFI oscillator.

RSI that is based on Directional Movement with added filtering and PSAR

Fractal Larry Williams' Percent Range.

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

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 Expert Advisor is based on the signals of indicators iBands (Bollinger Bands, BB) and iRSI (Relative Strength Index, RSI).

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.

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.

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 price crossover with moving average indicator (CSignalMA from MQL5 Standard Library) is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

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.

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.

1...91011121314151617181920212223...184