As Header of Thread lets us learn how to describe Candle on MQ4 code..
For the First code for identified Engulfing Pattern :
Close[2]>Open[2] && Close[1]<Open[1]&&Close[1]<Open[2] Was Describe as Engulfing Pattern ussualy we found on reversal from bullish to bearish and for confirm lets current price (Bid) lower than Low[1]
So same condition for Opposite direction with opposite sign

For the First code for identified Engulfing Pattern :
Close[2]>Open[2] && Close[1]<Open[1]&&Close[1]<Open[2] Was Describe as Engulfing Pattern ussualy we found on reversal from bullish to bearish and for confirm lets current price (Bid) lower than Low[1]
So same condition for Opposite direction with opposite sign
