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

Submit your code

Finalization of previous version. Now, when opening a 'SELL' position, we immediately close all 'BUY' positions and vice versa: when opening a 'BUY' position, we immediately close all 'SELL' positions

Checks if Metatrader5 Terminal is connected to Internet or not. The expert will Print a message for the connectivity status

Open Pending order After Position Get StopLoss

This code use detect economic calendar and put pending order before released news time

Modify to allow direct specification of the starting point of the Parabolic SAR.

Trading strategy based on the custom indicator 'MA on Momentum'

Shows the optimal position size through a comment from a symbol chart based on a risk percentage on daily ATR, you can use either balance or equity.

Takes trades based on ICT silverbullet and 2022 model with trailing stops and partials, also keeps entry according to OTE, and risk minimal. It works in a small time window of silver bullet especially NY session, and if no trade found, 2022 model and fibonacci OTE jumps in to get a trade. But entry is so only after confirmation with these models being there, hence trades will be less for minimal drawdown and high winrate. To know more about these strategies, you may visit Inner Circle Trader YouTube channel.

Very simplified code: intersection of two custom indicators 'MA Other TimeFrame Correct'. There is no Stop Loss, Take Profit or Trailing.

Expert is a joke! The position is opened at random!

This EA collects information about the spread and shows the statistics on the chart. When the EA ends its working, it prints all statistics to the Journal, which can be useful for the Strategy Tester.

This EA collects information about the spreads and Shows the number of spreads in the specified range based on the ticks that occur each year.

This EA can Calculate each trade volume base on received TP and SL Prices and Risk percent of account in each trade.

trending breakout

This is a simple EA test code I made for adapting Candlepatterns.mqh

Set Trailing Stop only when profit

Single Currency or Manual orders Closing or deleting sections are very easy to understand but if you have a question you leave it at comment section. The code check for Comment to detect the Orders to close or delete for multi currencies EA in case the input EAComment is empty It will close according to type of close. It supports prefix or suffix of EA Comment. Many options can be added if you are interested on developping it more you can leave your suggestion on comment section.

Trading strategy for the custom indicator 'CHO Smoothed EA'

Calculates Brokerage, Commission or Slippage based on the Input on the strategy Tester

Use protect profit after open position

pips in time

For MT5, When Press the Button, it will delete all STOP LOSS and TAKE PROFIT applied to Current Open Market positions. For All Symbols. The panel is based on the CDialog class, works for all symbols

Trading strategy for the custom indicator 'OsMA Four Colors Arrow EA'

Reverse candle patterns

Proportional grid distance, open long and short orders at the same time, skip two grids to take profit; When the equity recaches the take profit of setting, close all positions and restart.

Around the moving average index to set grid.

Check exists pending order prevent duplicate create pending order

This code use close all profit at end of week for currency pair

macd divergence and rsi filter

The Master Intelligence EA analyzes market data through 8+ modules, each providing unique insights.

Professional open-source Trailing Stop manager for MetaTrader 5 with adjustable start, distance, step, profit filter, Magic Number filtering and a modern Quantora dashboard.

A small educational Expert Advisor showing how a classic Donchian breakout can be applied directly to completed Renko bricks.

Drag your stop loss where you actually want it, hit Buy or Sell, and the lot size is already correct — no calculator, no spreadsheet. Handles break-even, trailing, and shuts trading down for the day if you hit your loss limit.

EMA(10) x EMA(30) scalper for XAUUSD on the M15 timeframe with a Jakarta session filter. Educational example: fixed lot size, SL/TP in points, maximum of 1 position, spread filter. Tested on 100% real ticks.

AurumNeuro Vanguard is an intelligent Expert Advisor (EA) specifically designed for XAUUSD / Gold trading, combining a hybrid Neural Risk Architecture with the Unified Market Dynamics Engine (UMDE).

Writes a CSV journal of every trade with the exit reason, and a report that shows how far each trade ran, in R. It never trades.

A lightweight, non-trading Expert Advisor that writes a JSON health heartbeat (connection, AutoTrading state, equity, daily P/L) and an equity log, so a VPS watchdog can detect frozen or disconnected terminals and alert you.

Monday Dip EA is a quantitative, time-based long-only trading strategy designed primarily for major stock index CFDs (such as US500, UK100) with complete daily history. It operates purely as a time-restricted buy-on-dip system rather than a trend-following indicator.

This Expert Advisor trades fair value gaps in the direction of market structure, the way Smart Money Concepts describes it. It is the third step of a series that has been built one piece at a time: In previous shared codes, the SMC Pullback Indicator decided which highs and lows matter, the SMC Market Structure indicator turned those swings into a trend with BoS, CHoCH, IDM and liquidity sweeps, and this EA trades the result.

1...3536373839404142