Bullish Patterns:
- bullish1: This pattern is a standard bullish engulfing pattern. It occurs when the current candle's close is higher than its open, the previous candle's close is lower than its open, and the current candle's close is higher than the previous candle's high.
- bullish2: This pattern extends the criteria of the bullish engulfing pattern. In addition to the conditions of bullish1, it checks if the close of the previous candle is higher than its open and if the close of the current candle is higher than the previous candle's high.
- bullish3: This pattern further extends the criteria. In addition to the conditions of bullish2, it checks if the close of the candle two periods ago is higher than its open and if the close of the current candle is higher than the previous two candle's high.
- bullish4: This pattern is the most extended version. In addition to the conditions of bullish3, it checks if the close of the candle three periods ago is higher than its open and if the close of the current candle is higher than the previous three candle's high.
Bearish Patterns:
- bearish1: This pattern is a standard bearish engulfing pattern. It occurs when the current candle's close is lower than its open, the previous candle's close is higher than its open, and the current candle's close is lower than the previous candle's low.
- bearish2: This pattern extends the criteria of the bearish engulfing pattern. In addition to the conditions of bearish1, it checks if the close of the previous candle is lower than its open and if the close of the current candle is lower than the previous candle's low.
- bearish3: This pattern further extends the criteria. In addition to the conditions of bearish2, it checks if the close of the candle two periods ago is lower than its open and if the close of the current candle is lower than the previous two candle's low.
- bearish4: This pattern is the most extended version. In addition to the conditions of bearish3, it checks if the close of the candle three periods ago is lower than its open and if the close of the current candle is lower than the previous three candle's low.
These patterns are progressively more stringent, capturing engulfing behaviors across multiple candle periods for both bullish and bearish scenarios.