Custom candlestick pattern

Hi members,
i’m looking for bull bull pattern… in this previous candle and current candle both are bullish, but current candle engulf previous candle.
I’ve tried to make it work
if ((C1>O1)&&(C>O)&&(C>=C1)&&(O>=O1)&& ((C-O)>=(C1-O1))) {
if (Display_BULL_BULL == true) {
ObjectCreate(PatternText[shift], OBJ_TEXT, 0, Time[shift1], Low[shift1] - Range1.5);
ObjectSetText(PatternText[shift], “BULL BULL”, 9, “Times New Roman”, Yellow);
upArrow[shift1] = Low[shift1] - Range
0.5;
}
if (shift == 0 && Show_Alert == true) {
pattern=“BULL BULL pattern”;
setalert = 1;
}

but it’s not showing me what i want ?
i modified in pattern recognizer.