# Engulfing Bar

Engulfing Bar is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Flags full-range engulfing bars (a high above the prior high, a low below the prior low and a close beyond the prior extreme in the new direction) with significance filters for range expansion, close location, trend context, swing location and volume. Each signal maps a trigger and a protective stop as dashed levels, with alerts for signals, trigger breaks and invalidations.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 27, 2026.
- Access: free.
- Concepts: [Engulfing Bar](https://www.luxalgo.com/library/concept/engulfing-bar/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=kt41f5cb7d43nwa16uwkl3ss
- Page: https://www.luxalgo.com/library/indicator/engulfing-bar/

**Engulfing Bar** detects the full-range form of the pattern: a signal bar that overruns the previous high and low alike, then closes past whichever extreme lies in the new direction, a round trip that traps whoever positioned off the first break. Raw [engulfing bar](https://www.luxalgo.com/library/concept/engulfing-bar/) prints are frequent and mostly forgettable, so the build centers on its significance filters (range expansion, close location, trend context, swing location and participation), each optional.

## How to Trade the Engulfing Bar?

- **Bullish signal**: the bar sweeps under the prior low, then finishes above the prior high, labeled and painted in the signal color, with the bearish print as its mirror.
- **Trigger break**: the dashed Trigger line marks the conventional entry (a break of the signal bar's extreme), and firing it raises an alert.
- **Stop break**: a return through the opposite extreme negates the pattern; the Stop line tracks it with invalidation alerts.

## Engulfing Bar Settings

- **Minimum Bars Engulfed** (default 1): consecutive prior bars the signal bar must fully engulf; 1 is the classic two-bar form.
- **Range Filter** (default enabled; Multiple 1.0, Length 14): requires the span to beat the trailing average range by the set multiple.
- **Close Location Filter** (default disabled; Zone % 33): requires the close in the extreme zone of the span.
- **Trend Context** (default None; SMA Length 50): Reversal demands the pattern print against the prevailing move, Continuation with it.
- **Swing Extreme Location** (default disabled; Window 20): keeps only signals at the window's extreme.
- **Volume Filter** (default disabled; Multiple 1.0, Length 20): a participation preference, bypassed where no volume exists.
- **Trigger & Stop Levels** (default enabled; Trigger Level Bar Extreme, Levels Extension 10); Pattern Labels and Color Pattern Bars default on.

## Frequently Asked Questions

### How does this differ from Three Outside Up/Down?

[Three Outside Up/Down](https://www.luxalgo.com/library/indicator/three-outside-up-down/) is the candlestick catalog's confirmed variant: a body-engulfing candle plus a third bar closing further in the new direction. This build tests full high-to-low ranges, waits for no third bar, and swaps that confirmation for explicit trigger and stop levels.

### Which filters should stay on?

The Range Filter earns its default: a signal bar smaller than its neighbors carries little meaning, and small prints inside chop fire constantly. The others are stylistic; enable them to taste.

### What do the signal labels report on hover?

Each label's tooltip lists the bars engulfed, the range expansion versus the trailing average, the close's position within the span, and the trigger and stop prices. The pattern's whole case sits in one hover.

## Related indicators

- [Candle 2 Closure](https://www.luxalgo.com/library/indicator/candle-2-closure/) (Two-bar Reversal): markdown at https://www.luxalgo.com/library/indicator/candle-2-closure.md
- [Long Wick Detector](https://www.luxalgo.com/library/indicator/long-wick-detector/) (Pin Bar): markdown at https://www.luxalgo.com/library/indicator/long-wick-detector.md
- [The Strat](https://www.luxalgo.com/library/indicator/the-strat/) (Inside Bar): markdown at https://www.luxalgo.com/library/indicator/the-strat.md
- [N Bar Reversal Detector](https://www.luxalgo.com/library/indicator/n-bar-reversal-detector/) (Three-bar Reversal): markdown at https://www.luxalgo.com/library/indicator/n-bar-reversal-detector.md
- [Wide-range Bar](https://www.luxalgo.com/library/indicator/wide-range-bar/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/wide-range-bar.md
- [CBC Flip with Targets and Filters](https://www.luxalgo.com/library/indicator/cbc-flip-with-targets-and-filters/) (Two-bar Reversal): markdown at https://www.luxalgo.com/library/indicator/cbc-flip-with-targets-and-filters.md
- [Exhaustion Bar](https://www.luxalgo.com/library/indicator/exhaustion-bar/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/exhaustion-bar.md
- [Three Bar Reversal Pattern](https://www.luxalgo.com/library/indicator/three-bar-reversal-pattern/) (Three-bar Reversal): markdown at https://www.luxalgo.com/library/indicator/three-bar-reversal-pattern.md

---

Source: https://www.luxalgo.com/library/indicator/engulfing-bar/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
