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

Submit your code

The Expert Advisor uses the iStochastic (Stochastic) Oscillator, iWPR (Larry Williams' Percent Range) indicators.

The simplest EA based on the WeightOscillator weighted oscillator.

An example of determining the moment when a pending order has triggered.

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

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

An Expert Advisor based on the "Arrows&Curves" indicator.

The EA uses the following indicators: iADX (Average Directional Movement Index, ADX), two iMAs (Moving Average,MA) - one indicator at CLOSE prices and another one at OPEN prices, iOsMA (Moving Average of Oscillator, OsMA).

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15

It uses martingale, the number of doublings is limited.

Introducing the example of visualization of optimization results in real time (balance curve dynamics and an Expert Advisor statistical parameters).

Trading system based on the signals of the PA_Oscillator indicator.

A trading system based on the signals of the WPR_Histogram indicator.

Trading system based on Elliott_Wave_Oscillator indicator signals.

Simple code that illustrates trading based on the OnTimer event. When the timer triggers, the robot alternately performs buy and sell deals with fixed stop loss and take profit values.

An example of creating a trade panel using the MasterWindows library.

The Exp_i-SpectrAnalysis_RVI EA is based on the signals generated by the i-SpectrAnalysis_RVI oscillator.

The Exp_RVIDiff Expert Advisor is based on change of direction of the RVIDiff indicator.

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.

The Exp_AdaptiveCGOscillator_X2 trend trading system based on the signals from two AdaptiveCGOscillator indicators.

Modification of StopLoss of any positions. Trailing. Trailing.

Two identical trading systems (for long and short positions) based on the signals of indicator SilverTrend, which can be configured in different ways within one Expert Advisor.

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 Exp_LeManTrend EA is based on the signals generated by the LeManTrend oscillator.

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_TotalPowerIndicatorX Expert Advisor is based on the signals generated by the TotalPowerIndicatorX oscillator. It also provides the possibility to set a strict trading time interval

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

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

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

The Expert Advisor shows the use of the free LibCustomChart library for the automatic connection of the Expert Advisors and indicators to iCustomChart custom charts created on the basis of custom history files.

A trading system based on the signals of the Heiken_Ashi_Smoothed indicator.

The Exp_PPO_Cloud EA is based on the signals generated by the PPO_Cloud oscillator.

This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit.

The Expert Advisor opens and closes at a certain time comparing two iMA indicators having different periods. A trade having a specified volume is opened at a specified symbol. Setting Stop Loss and Take Profit. Select position type: Buy or Sell.

The trading system based on crossing of the DI+ and DI- lines of the Fractal_ADX_Cloud indicator.

Analysis of bars, if they contain N consecutive bars of the same type.

Analysis of OHLC on 0, 1, 2 and 3 bars.

Crossing of the two iMAs. Lot calculation based on the risk value as a percentage of margin.

123456789101112...36