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

MQL4 Source Codes of Expert Advisors for MetaTrader 4 - 7

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

"Harami" trades with 2 Moving Averages and an Harami pattern has Trailing Stop Loss &Take Profit works on 4H & 1D time frames major forex pairs and stocks NASDAQ.

"Trend Is Your Friend" trades with 2 Moving Averages and an Engulfing pattern has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

1MA

"1MA" EA trades with a strategy based on one 20 period moving average and has Trailing Stop Loss &Take Profit works on all time frames major forex pairs

Hedging Martingale opens two trades of buy and sell together,and uses the martingale method.

"Accelerator " EA trades with "Accelerator" indicator and has Trailing Stop Loss &Take Profit works on all time frames major forex pairs.

Open and close when fast moving average line cross slow moving average line. Default parameters is for XAU H1.

The "Risk Reward Ratio" EA trades with RSI,MA & STOCHASTIC indicators It uses a Risk Reward Ratio ,has Trailing Stop Loss &Take Profit,works with all time frames major forex pairs and stocks NASDAQ.

The "Fractals Martingale" EA trades according to "Fractals" and "Iccimoku" indicators. If we lose a trade then the EA will take a new trade with a multiplied lot size,has Trailing Stop Loss &Take Profit,works with all time frames major forex pairs and stocks NASDAQ.

1H Bolinger Bands EA trades according to the "Bolinger Bands" indicator and two MA's,has Trailing Stop Loss &Take Profit works best on 1H and 4H time frame major forex pairs and stocks NASDAQ.

Bladerunner EA trades with "Fractals" indicator and 20 period moving average strategy has Trailing Stop Loss &Take Profit works on 1H time frame major forex pairs and stocks NASDAQ.

555 Scalper EA trades with two 5 period exponential moving averages has Trailing Stop Loss &Take Profit works on 5 minute time frame major forex pairs and stocks NASDAQ.

Candle Trader EA trades according to the low/high price of the candle of the previous day,has Trailing Stop Loss &Take Profit, works best on H4 and daily time frame major forex pairs and stocks NASDAQ.

Stochastic EA trades with two "Stochastic " indicators has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ .

Ichimoku EA trades with "Ichimoku " and "Parabolic" indicators,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

This Martingale EA trades with "Demarker" indicator, it is considered relatively safe because it takes a single trade at a time has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

Price_ActionEA trades with "PRICE ACTION" strategy has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

4H Swing EA trades with 3 EMA's and "STOCHASTIC" indicator and swing strategy has Trailing Stop Loss &Take Profit works best on 4H & 1D time frame major forex pairs and stocks NASDAQ.

This Expert Advisor is for the grid trade. Market order is repeated in a single direction at fixed intervals.

BB Swing EA trades with "BOLINGER BANDS" indicator and swing strategy has Trailing Stop Loss &Take Profit works best on 1H & 4H time frame major forex pairs and stocks NASDAQ.

10Pips EA uses two moving averages to find 10 pips,has Trailing Stop Loss &Take Profit works best on 1 hour time frame major forex pairs and stocks NASDAQ.

Macd 1 Min Scalper uses two moving averages and "MACD" indicator on 1 min time frame has Trailing Stop Loss &Take Profit works best on major forex pairs and stocks NASDAQ.

1 Minute Scalper EA with 13 moving Averages has Trailing Stop Loss &Take Profit works best on 1 minute time frame major forex pairs and stocks NASDAQ.

Adx EA trades with ADX indicator strategies has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

15 Minute Scalper EA trades with Stochastic & Parabolic indicators has Trailing Stop Loss &Take Profit,works best on 15 minute time frame EUR/USD and stocks NASDAQ.

5 Minutes Scalper EA retracement strategy has Trailing Stop Loss &Take Profit,works best on 5 minute time frame EUR/USD and stocks NASDAQ.

The Smart tunnel is a smart robot for trading with an automatically drawn trend line to act with it and market movement. Enjoy :)

Global Variables , Press function key "F3" Change "GMT_Time_Diff" : Diff. Eastern Time with Local Time "_ParaSL_SL" : Stop Loss Pips "_ParaSL_TP" : Take Profit Pips "_Para_Diff" : Retrace Entry , Pips with Parabolic Sar Value Remark : Limit Sell ; Bid Price with Parabolic Sars Value Limit Buy ; Ask Price with Parabolic Sars Value "_Para_lots" : Lots

OCO_EA.mq4 Copyright 2018, Speed Technology Copyright 2011, Trade Pro Company Write By Raymond (Hong Kong) OCO Order on MetaTrader4 Platform (Absolute Free) MT4 (One cancels the other) One pip Limit Order One Pip Stop Order

"Trend Finder" EA Trades when there is a breakout from historical minimum/maximum has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Engulfing" EA Trades when there is an ENGULFING pattern has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Ichimoku Rretracement" EA Trades when there is a retracement from "ICHIMOKU" levels has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Pull Back" EA Trades when there is a pull back from the trend of 2 Moving Averages has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Donchain Channel" EA Trades when there is a retracement from "DONCHAIN CHANNEL" levels has Trailing Stop Loss works on all time frames major forex pairs and stocks NASDAQ.

"Bolinger Band Squeeze" EA Trades when there is an expansion after contraction of bollinger bands has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Pinbar" EA Trades when there is a PINBAR pattern,has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Fibonacci" EA Trades when there is a retracement from "FIBONACCI" levels has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

Rsi & Cci Divergence EA Trades when there is a divergence of "RSI" or "CCI" indicator has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

This EA uses "Renko" box size on MetaTrader 4 chart. When the price reaches the level where there was a fractal, the EA enters a trade, has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

EA purposes to always win with cumulative profit and to manage volume.

A martingale strategy, an old EA that was rebuilt to be efficient.

1234567891011121314...29