Bearish Bullish Engulfing
Download scriptThis tool is designed to identify and visualize specific candlestick patterns on a trading chart—specifically Bearish and Bullish Engulfing patterns. These are popular technical analysis signals used by traders to spot potential reversals in price momentum.
How the Logic Works
The script scans your price history bar-by-bar to detect two distinct scenarios:
1. Bearish Engulfing Detection (Potential Downward Turn) The script looks for a specific transition between two consecutive candles:
- Previous Candle: Must be a "bullish" candle (the price closed higher than it opened).
- Current Candle: Must be a "bearish" candle (the price closed lower than it opened).
- The "Engulfing" Criteria: The current bearish candle must be physically larger than the previous one in such a way that its opening and closing prices completely "swallow" or overlap the body of the previous bullish candle.
- Visual Output: When these conditions are met, the script places a Red Arrow on your chart to signal a potential shift toward a downward trend.
2. Bullish Engulfing Detection (Potential Upward Turn) Conversely, the script identifies signals for an upward move:
- Previous Candle: Must be a "bearish" candle (closed lower than it opened).
- Current Candle: Must be a "bullish" candle (closed higher than it opened).
- The "Engulfing" Criteria: The current bullish candle must be large enough to completely cover the body of the previous bearish candle.
- Visual Output: When these conditions are met, the script places a Blue Arrow on your chart to signal a potential shift toward an upward trend.
Key Features for the User
- Visual Clarity: Instead of just highlighting bars, the tool uses arrows. It is programmed to offset these arrows vertically (above or below the candle) so they do not clutter the actual price action, making them easier to see at a glance.
- Real-Time Updates: The script calculates these patterns automatically as new price data arrives, allowing you to see signals develop on your chart dynamically.
- Customizable Positioning: You can adjust the vertical "shift" (in pixels) of the arrows if you find they are too close to or too far from the candles based on your specific screen resolution and zoom level.
Price Data Components
12
Views
0
Downloads
0
Favorites
Bearish Bullish Engulfing
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | B e a r i s h B u l l i s h E n g u l f i n g . m q 5 |
/ / | C o p y r i g h t © 2 0 2 1 , V l a d i m i r K a r p u t o v |
/ / | h t t p s : / / w w w . m q l 5 . c o m / e n / u s e r s / b a r a b a s h k a k v n |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "