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

MQL5 Source Codes of Expert Advisors for MetaTrader 5 - 3

icon

Expert Advisors analyze price charts and trade automatically following underlying rules. Here you can find MQL5 source codes solving a variety of problems. You are able to select both simple Expert Advisors based on moving average crossing and complex ones involving complicated signal generation algorithms and protection against trading mistakes.

You can download and launch offered Expert Advisors in MetaTrader 5. It is recommended that you test and optimize trading robots in the Strategy Tester before using them. The library of Expert Advisors is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

The EA works on the signals of the custom indicator 'PriceChannel_Signal_v2' ( https://www.mql5.com/en/forum/173249/page132#comment_15924070 )

Trading strategy for the custom indicator 'CHO Smoothed EA'

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

Strategy based on the signals of the custom indicator 'RSI_MAonRSI_Dual'

Strategy based on the custom indicator 'RSI_MAonRSI_Filling'. The minimum step is set between positions

Reverse candle patterns

Around the moving average index to set grid.

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.

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.

Set Trailing Stop only when profit

This EA help you to auto set the TP, SL & TRAILING by default, easy to close all orders with button "Close All" *Update April 2022. Channge ushor to ulong to support giant spread like Boom/Crash Synthetic Symbols

Open Pending order After Position Get StopLoss

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

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

Check exists pending order prevent duplicate create pending order

Use protect profit after open position

& moving average , two rsi filters.

awesome oscillator, stochastic filter. expert

Expert

trending breakout

pips in time

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

Buy Sell on your price, Choose Market order, Pending Limit order or Pending Stop Order

macd divergence and rsi filter

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

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

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

Converted Ronz AutoSLTP MT4 version into MT5 version. Original Link: https://www.mql5.com/en/code/11649 Original Descriptions: EA for Automatic Stop Loss, Take Profit, Profit Lock, and Trailing Stop (With Special Methods). SL and TP could be hidden.

The simple trading panel is a trading tool that is very interesting because it will allow you to predefine your StopLoss and your TakeProfit in term of pips.

This is a MT5 expert advisor which displays the total stoploss and takeprofit value for open positions.

This is an utility which allows you to list all open charts, indicators, expert advisers, and scripts in alphabetic order, and switch between them.

It is Diffrent complex Range BreakOut system. Using to Range Breakout system is defined by min number of bars and max width in pips. This robot is can use to volatility instrument.

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 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 is a simple EA test code I made for adapting Candlepatterns.mqh

Ea working well on EURUSD1 H1 with initial parameters, using a simple strategy based on Bollinger bands and RSI.

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

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!

A Sample of Averaging Up/Down Martingale EA.

This is a module for MQL5 Wizard and Standard Library, which allows you to generate expert adviser based on arbitrary set of indicators and conditions.

12345678910...36