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

Submit your code

The Moving Average Convergence/Divergence (MACD) is the next trend-following dynamic indicator. It indicates the correlation between two Moving Averages of a price.

The indicator plots the candles with different colors depending on the trend direction and price movement.

The NRTR (Nick Rypock Trailing Reverse) indicator draws the base line (support and resistance) and a target line.

The OnTick event handler is designed to proceed the ticks for a certain symbol. This is the version of Multicurrency tick event handler.

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.

This is the simplified implementation of multicurrency mode in MetaTrader 5. It isn't necessary to consider the details how does it work. It has minimum settings and simple structure. It can be used in Strategy Tester.

Trade signals based on "Bullish Engulfing/Bearish Engulfing" candlestick pattern, confirmed by Stochastic 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 "Bullish Engulfing/Bearish Engulfing" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_CANDLES drawing style plots the candles using the values of 4 indicator buffers with Open, High, Low and Close prices.

Moving average with the double adaptive JMA smoothing of a price range.

This oscillator generates market entry and exit signals based on RSI and CCI indicators.

SuperTrend trend indicator.

Forecasting the next day candlestick changing range for all bars of the current chart.

CATROnArray is designed for calculation of ATR (Average True Range) values on indicator buffers. The example of use of the class is provided.

The CIchimokuOnArray class is intended for calculation of Ichimoku (Ichimoku Kinko Hyo) values on indicator buffers.

Laguerre_HTF_Signal shows a trend direction or a signal for performing a deal generated by Laguerre indicator as a graphic object with colored trend indication or deal direction.

The indicator showing volatility breakout as a histogram and serving as a signal for market entry/exit/position reversal or position volume increasing.

The indicator specifies the market volatility as a standard deviation.

This library allows an easy interface to MySQL.

Pearson correlation indicator shows the correlation between symbols.

The indicator of the arbitrage situation for spread consisting from two instruments

This script displays several subcharts in a single chart window according to the number of currency pairs in Market Watch menu.

The second (edited and added) version of the alternative indicator for trend definition based on the breakthrough bars and distance from extremums. The breakthrough levels and size of the previous trends are added.

An updated version of the CBitPic class with the ability to control drawing transparency

Three Moving Averages with three different timeframes on one chart.

Flat determining indicator.

The Triple Exponential Moving Average indicator implemented as a sequence of candlesticks.

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

Trend indicator with simple and clear indication of position opening moments.

The Exp_LeManTrend EA is based on the signals generated by the LeManTrend oscillator.

The indicator demonstrates the operation of obtaining the ticks using the "CopyTicks", and allows to compare the three modes of obtaining ticks.

Trading system based on Bezier_StDev indicator signals.

Script for drawing a price markup.

ZigZag based on MACD histogram.

This version has 6 sub-types it is actually calculating.

This is the Leader of the MACD as described by Giorgos E. Siligardos.

Gaussian Filter for apply to other indicators too.

The auto envelope automatically sizes channels by calculating a standard deviation for the last n bars.

Average using dr. Andreas Uhl's "correction method.

The indicator is derived from the NRTR indicator.

1...464748495051525354555657585960...210