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

Submit your code

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.

The Expert Advisor closes all positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

The Exp_PercentageCrossover Expert Advisor is based on the change of the PercentageCrossover color, and provides the possibility to set a strict trading time interval.

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

An example of creating synthetic instruments for calculating the strength of RTS, USD, RUB based on futures contracts of the FORTS market.

The Expert Advisor allows checking the potential profitability of the ZigZagLW Addition indicator.

Rsi(var) with averages.

1...424344454647484950515253545556...205