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 Expert Advisors for MetaTrader 5 based on user ratings - 3

Submit your code

The Expert Advisor works comparing iCCI and iMACD indicators.

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

The Expert Advisor has been created using the MQL5 Wizard, on the basis of MACD (Moving Average Convergence/Divergence) signals and the Parabolic SAR trend indicator.

The Expert Advisor is based on the indicator with the same name. Lot is calculated based on the risk value as a percentage of free margin.

A trading system based on the AFStar indicator signals.

Closing positions: all, only profitable or only losing positions.

A trading system based on the 'EMAAngle' and 'Laguerre RSI with Laguerre filter' indicators.

The Expert Advisor uses three iMA (Moving Average, MA) indicators and one iMACD (Moving Average Convergence/Divergence, MACD)

Expert Advisor Exp_BlauTVI_Tm based on the signals of trend-following indicator BlauTVI

A trading system based on the tick volume of bars.

A trading system based on the signals of indicator XPeriodCandle.

The Panel Designed for "Best Graphic Panel in MQL5" Contest. This graphic panel allows to automate manual trading. It has many functions, including the visual construction of trading strategies.

Trade signals based on crossover of main and signal lines of MACD indicator (CSignalMACD 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 "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by RSI (Relative Strength Index) 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 "Morning Star/Evening Star" candlestick patterns, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

This Expert Advisor illustrates the usage of the IndicatorParameters() function to get the information about the number of input parameters, their type and values.

Example of getting world index quotes from Google Finance.

The Exp_DigVariation Expert Advisor is based on the reversal of the DigVariation non-normalized oscillator direction.

The Expert Advisor enables and disables the "AutoTrading" button at a certain time and closes all opened positions on the account once the specified period of time expires.

The ZZ Fibo Trader is a simple illustration of the use of the Simple ZZ Fibo, which plots Fibonacci lines on long impulse waves of the ZigZag. In addition, the algorithm illustrates operation of the parabolic system for moving the stop loss.

The semi-automated Expert Advisor using a trend line (TrendLIne).

The simplest EA based on the fractal WPR.

A multi-currency Expert Advisor that opens a market position at the user defined time.

The Expert Advisor moves trailing stops of all positions on the current symbol.

A trading system based on the Omni_Trend indicator signals.

A trading system based on the KWAN_CCC indicator signals.

This is a working singleton code example. The sole purpose of this post is to provide a working code sample of a singleton object. A singleton object is created when there 'can be only one' of the object. This is accomplished by making an object's constructor private, and ensuring assignment and copy operations are also private. I was working on an EA and identified that an object should never have more than one copy. I don't expect the EA to ever get large enough for it to actually matter that a singleton is used, but I like the clarity in the code for the object's type. The code follows closely the tutorial at http://www.yolinux.com/TUTORIALS/C++Singleton.html.

This is a tutorial on how to confirm double bottom & RSI patterns

Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The Exp_JBrainSig1_UltraRSI Expert Advisor uses the values of JBrainTrend1Sig and UltraRSI indicators to analyze the market state.

A panel for opening and closing positions on several financial symbols in one click.

Trading system based on NRTR_extr indicator signals.

A trading robot for performing arbitrage between EURGBP and its synthetic quotes (triangular arbitrage).

Trading system based on Volume_Weighted_MA_StDev indicator signals.

Synchronization of the bars displayed on all open charts of the terminal.

Trading system based on the signals of the MFI_Slowdown indicator.

Exp_X2MA_Digit_DM_361 trend-following trading system is based on ColorX2MA_Digit and ColorDM_361 indicator signals.

The simplest Expert Advisor based on MFI.

The Expert Advisor which uses the AO and AC indicators in its operation, which were proposed by the Bill Williams.

The Expert Advisor places two pending orders (BuyStop and SellStop) with the specified expiration.

12345678910...36