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

MQL4 Source Codes of Expert Advisors for MetaTrader 4 - 4

icon

Various applications to automate analysis and trading are available in the 'Expert Advisors' section. It features various applications based on different trading algorithms and provides different degrees of automation. You can find simple EAs and complex trading robots that can fully automate analysis and trading processes.

These applications can be downloaded and run in MetaTrader 4. It is recommended to test and optimize Expert Advisors in the Strategy tester. The Expert Advisors from the library can be accessed from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

A ready made expert adviser template to use for further development

Basic Template for Multicurrency Expert Advisors.

This EA is for testing No Nonsense Forex algos. With this EA you can test your algos much faster than eyeballing, using Soft4x or using any other EAs in Strategy tester.

Simple Trailing Stop EA with Trailing Steps and Trailing Start Point It includes Stoploss and TakeProfit too..

A ready made expert adviser template to use for further development or use 'as is'

PricerEA is a utility to help any trader to place pending orders (stop or limit) at a specific price.

These codes give you a list of currency pairs that have a positive and negative swap. This is useful when you do a Carry Trade strategy.

Dynamic Stop-Loss is a tool for traders who trade without a stop-loss. It gives the traders a trick to trade as if there is no stop-loss but actually using one.

Candle Cross above or below Conditions

Safe Trend Scalp is an automatic robot that trades with automatic Trend lines that ea crated with market history.

It's an expert to open and close orders on a specific day and time. Expert open and close orders only with the same symbol attached. For more information, please visit product's page: https://www.mql5.com/en/market/product/44939

"X Man" EA uses Equity Stop from total Equity, you can use it as hedging grid EA or a single trade EA.

Classic "MACD Sample " EA with a little twist

The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

Guide 'how to' make different expert adviser license protections

FIFO strategy When all the market movement makes you have lost, This ea makes a good profit with a little profit with many orders in a short time Just on a Candle.

This scalping EA demonstrates the use of a Virtual Pending order class library to simulate pending orders.

It's a two (2) pairs correlation system to use 3 currencies for make 2 pairs to open hedge orders on those. 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 Please visit the product's page for more information: https://www.mql5.com/en/market/product/34112

It's an expert to use price action and trade level to open each order. The expert can trade up 12 pairs, uses the corresponding default setting for each pair. Default settings are good for EURUSD pair and IC Markets broker. For more information, please visit product's page: https://www.mql5.com/en/market/product/43249

The "Gonna Scalp" EA is a scalper , works with all time frames major forex pairs and stocks NASDAQ.

Will scale up after N consec losses and will reset after same amount of consec wins

The "Smart AC Trader" EA trades with 2 moving averages , If we lose a trade then the EA will take a new trade with the opposite conditions

The "Martingale Smart" EA trades with 2 strategies , If we lose a trade then the EA will change strategy and take a new trade with a multiplied/increased lot size,

ROC

"ROC" EA Trades with "ROC" indicator, has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

A basic ea template with trailing stop for further development

A ready made expert adviser template to use for further development or use 'as is'

Grid Template EA - A ready made expert adviser template to use for further development or use 'as is'

This expert is a tool to test any of my histo indicator (8) for testing and find better settings to trade. You can use separately one by one indicator or more of one or all together as a system. Expert need all indicators for working and generate signals.

The expert uses iFollowLine and iCompass indicators to generate signals. It's an easy and quick way to test both indicators. 27/09/2019 updated expert and indicators.

5MinutesScalpingEA uses indicators (5) from 5MinutesScalpingSystem. This expert is to help any user of the system to try some different settings of indicators easy and quickly. Expert need indicators to generate signals. Has the ability to use all of the indicators, or some of them.

It's an expert to help any user to find better settings for FolowLine indicator. Expert works only with FolowLine indicator.

This expert uses iDoubleChannel indicator. You can use to make backtesting to find best settings for indicator.

Detects intersections between MA3, MA20 and MA150.

It's a multi-currency grid and martingale system that can trade all input pairs from one chart. The expert will close all orders for each pair using a profit level. The expert has the possibility to trade up to 100 pairs. It's a grid, hedging and averaging system. For more information, please visit product's page https://www.mql5.com/en/market/product/30282

NewsReleaseEA is an expert to trade about economic news uses pending orders. For more information, please visit product's page: https://www.mql5.com/en/market/product/31590 Read how can to set GMT offset in my blog: https://www.mql5.com/en/blogs/post/732403

This Expert Advisor is a pure scalping system.

This Expert Advisor is a pure hedging system. The expert place and manage two market opposite orders. Runs perfectly on pairs with tight spread and low commission broker (commission plus spread equal or less than 0.5 pip). The code is available for testing and studying. For more information please visit the product's page: https://www.mql5.com/en/market/product/33295

Let say you have an EA and you want it to trade in between an interval of time but you do not have the source codes to modify the EA. This utility allows you to automatically enable or disable the automated trading button. You can use the codes as an EA, Indicator or script but I used as an EA. You can remove Ordersend command because I set it only for the codes to past the test but it is meaningless.

EA with candle size filter and scale on loss

A Price Time correlation model is used for Trend and Reversal trading

1234567891011...29