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

Submit your code

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.

Export MQL5 live data to Excel (DDE)

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.

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.

The Expert Advisor uses the MACD, OsMA and WPR indicators. The Expert Advisor is configured to trade on the D1 timeframe with USDCHF, GBPUSD, USDJPY and EURUSD

The Expert Advisor solves the problem of position trailing along a given curve by moving its Stop Loss and Take Profit.

An example of a template for developing automated trading systems.

Two identical trading systems based on the crossover of the CMO indicator and the zero line, for long and short trades, which can be configured in different ways in one Expert Advisor.

An Expert Advisor based on iFractals (Fractals) and on custom indicator ExVol.

Analyzed copy of ATC2012 current champion JPAlonso's EA.

An example of how to create a multicurrency Expert Advisor that trades using the Bollinger Bands indicator.

Robot that trades the open sentiment of the market.

12345678910...36