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

Submit your code

Trend detection based on the last three bars.

Grid of market positions. Martingale.

This is a multi-currency expert adviser based on reversal strategy with martingale. Original idea is taken from ExpMartin for MT4.

Basket Closer Type EA.

An MQL5 implementation of the adaptive UmnickTrade Expert Advisor.

An Expert Advisor based on two iMAs (Moving Average,MA) and one iRSI (Relative Strength Index, RSI). It tracks virtual profit. Works on two symbols.

A scalping Expert Advisor based on the "Market Capture" strategy.

The Exp_CronexRSI is based on the signals generated by the CronexRSI oscillator.

A trading system using the XAng_Zad_C trend-following indicator with the possibility to set a fixed trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

Two identical trading systems (for long and short deals) based on the ColorSchaffJCCXTrendCycle indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Returns the price for the most recent fractal high

Exp_Directed_Movement Expert Advisor is based on the change of color of the CCI_Woodies indicator.

ChannelEA2 - an Expert Advisor working in a channel, using pending stop orders.

An Expert Advisor based on cluster indicator CCFp (Complex Common Frames percent)

The Rapid Doji EA is a fully functional MetaTrader 5 Expert Advisor that uses pending orders (one BUY and one STOP) around each Doji candlestick on the Daily (PERIOD_D1) time frame. This is a great introduction to how to build a simple, profitable EA. You can watch, step-by-step, how this EA was built via YouTube videos. See the link in the code for details.

This Expert Advisor (EA) is designed for high-frequency trading on the 1-minute (M1) chart in both forex and crypto markets. It uses RSI and candlestick patterns to identify buy and sell signals, automatically executing trades with dynamic stop loss, take profit, and trailing stop levels based on market volatility.

Expert Advisor Exp_SpearmanRankCorrelation_Histogram with the added option of trading within the weekly range only, the borders of which are specified in the EA's input settings

Classic and one of the most popular trading strategies based on 2 moving averages crossover. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

The EA is based on Moving Average.mq5 from standard delivery. Working with OnTradeTransaction to get the price of the last closed position.

A trading system based on indicator iMA (Moving Average, MA).

RSI Bot, send alert buy when RSI<=20, send alert sell when RSI>=80

An Expert Advisor based on the "Fractals at Close prices" indicator.

It's a triangular arbitrage system (three pairs correlation system) to use 3 currencies to make 3 pairs to open hedge orders on those. The expert starts opening six orders for each ring (3 plus and 3 minus) and wait to move prices in one direction to make a grid of orders. For more information, please read the MT4 version of the expert: https://www.mql5.com/en/market/product/33814

The OzFx system. It uses Accelerator Oscillator and Stochastic Oscillator.

This advisor demonstrates an example of global variables usage. The task of the advisor: store the calculation result in a global variable and get the global variable value on new initialization.

A Sample of Averaging Up/Down Martingale EA.

Advisor for trading Gbp/Chf. Algorithm for bar opening prices. Timeframe H1.

MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.

- This Bot use stratery Breakout of Daily Bar, I tested for 3 Pair currency : GBPUSD, EURUSD, XAUUSD - Default setting is not sure the best, you can test for your parameter. - This is version for MT5 that convert from MT4 - this EA is best for broker low spread

It's a two (2) pairs correlation system to use 3 currencies to make 2 pairs to open hedge orders on those. The expert starts opening four orders for each couple (2 plus and 2 minus) and wait to move prices in one direction to make a grid of orders. For more information, please read the MT4 version of the expert: https://www.mql5.com/en/market/product/34112

this is my first try at creating an EA from ground up - update 4

This expert advisor is based on the alligator indicator and bollinger bands indicator. Currency pair: GBPAUD Time frame: 15min

Defining the channel width for a previous day.

Copy trading has become such a critical feature of forex trading. Some people see this as a potential business opportunity, while for opensource die-hards like me, we believe in giving back to the community rather than putting a price tag on everything 'nice'. So here it comes. A free opensource trade copier, which you are freely allowed to modify and distribute according to MIT license terms. It still has limited features, but the essentials like lot normalization are there. Please note that this copier only works for trading terminals installed on the same machine. Please share back any upgrades, enhancements or bug fixes to the discussion. Enjoy!

One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled) -Lines on chart for all Upcoming events -Code can be easily modified to place trade at certain time before or after an event or to just stop trading during events.

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones.

Locking positions - opening Buy and Sell simultaneously.

Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.

The MelBar™ EuroSwiss 1.85x 2Y™ Expert Advisor is a specific purpose profit-scalping tool which success depends on your understanding of its underlying strategy and your ability to configure it. Backtest results using historical data from 6 February 2018 15:00 to 19 February 2020 00:00 for the EUR/CHF (M30) currency pair proves very highly profitable. Initial Deposit : US$500 Investment returns : US$1426.20 Net Profit : US$926.20 ROI : 185.24% Annualized ROI : 67.16% Investment Length : 2 years 14 days (2.04 years) Visit these websites : https://352422.e-junkie.com/product/1645482 https://www.facebook.com/TheSoftwareSuite/

Trading panel that allows user to define levels of trade by simply dragging lines.

1...27282930313233343536