Engulfing candle MT4 EA

Disclaimer: the Metatrader 4 EAs that we provide for free are for educational purpose only. These expert advisors (algo trading) have been created between 2015 and 2019 for testing purpose. Some EAs have been used for live automatic trading in the past and some EAs should still provide some good results under certain market condition (and input parameters) nowadays, but we don’t advise to use any of these EAs live. If you choose to do this, it’s at your own risk.
We do not offer any support for this EA.

How the EA works

The EA takes advantage of the engulfing candle pattern. If you don’t know what an engulfing candle pattern is, you can search on the Internet, and here is a summary:

  • For a sell signal, you must have :
    • A bullish candle with an acceptable body size (if the candle is too small, we may exclude it because the signal won’t be relevant)
    • A bearish candle that engulfs the previous candle. The bearish candle must close below the previous candle open
  • For a buy signal, it is the exact opposite.

Why using the engulfing pattern?

The engulfing candle pattern is a strong reversal pattern but it may not be relevant alone on small timeframe. We recommand using it on H1+ timeframe only.

A bullish engulfing pattern (for instance) shows us that the buyers really want to reverse the trend because it breaks the previous candle high and even close above it.

EA input parameters

ParameterValue (example)Description/usage
StopLoss20.0the stopLoss static pips value (0 to disable stop loss)
TakeProfit135.0the first takeprofit static pips value (0 to disable)
TakeProfit250.0the second target static pips value (0 to disable)
TakeProfit3120the third target static pips value (0 to disable)
TakeProfit4235the fourth target static pips value (0 to disable)
LotSize1.0Lot size per opened position
EAMagicNumber205000EA identifier, you can put whatever you want
MinCandleBodySize9set a minimum acceptable candle body size for the engulfed candle
MaxCandleBodySize35set a maximum acceptable candle body size for the engulfed candle
UseTradingTimestrueSet this to true if you want to restrict the EA trading time with the 2 following inputs
TradingGMTStartTime6:00the EA intraday start hour:minute (GMT time)
TradingGMTEndTime18:00the EA intraday stop hour:minute (GMT time)
BrokerGMT3.0Broker GMT shift, if your broker is at GMT+3 put 3 there
MaxSpreadPips2.0Security to avoid opening position when the spread is higher than this value

EA download

Click on the download button to get the engulfing candle EA for Metatrader 4 for free

Source code Engulfing candle EA

Should you need to get the source code or just thank us for the free content, you can place an order using the buttons below.
We can’t give the source code for free because it’s using some custom libs that took a lot of time to build but we are offering it at a €29 fair price. The files will be sent to your paypal email address within 24 hours.

EA backtests example

Here is a quick backtest I made on GBPUSD H1 (4 months) for testing purpose.

Be the first to comment

Leave a Reply

Your email address will not be published.


*