Watch how to download trading robots for free
Find us on Telegram!
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 - 30

Submit your code

CADXWOnArray class is designed for calculation of ADXW (Average Directional Movement Index Wilder, ADX Wilder) values on indicator buffers. The example of use of the class is provided.

CMACDOnArray class is designed for calculation of MACD (Moving Average Convergence/Divergence) values on indicator buffers. The example of use of the class is provided.

CDeMarkerOnArray class is designed for calculation of DeMarker values on indicator buffers.

The indicator shows the use of the free Library for Custom Chart library for the automatic connection of the indicators to iCustomChart custom charts created on the basis of custom history files.

DCC

The indicator plots the chart of the specified symbol in a separate window.

Class for working with matrices.

Dedicated functions to read and write object properties.

Export of all necessary instruments and time frames in one click with load and checking history

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

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.

Semaphore signal indicator detecting changes in the direction of smoothed Detrended_Price_Oscillator and displaying them as signals.

Trading system based on ColorXTRIX_Histogram indicator signals.

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.

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.

BB stops - stochastic indicator.

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.

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

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

A simple strategy based on the signals of two indicators: Williams' Percent Range (WPR) and Bollinger Bands (BB). A position is opened only when the signals of both indicators coincide.

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

1...232425262728293031323334353637...199