# Golden Pocket

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

Anchors the 0.618-0.65 golden pocket automatically across confirmed swing legs, then tracks each band through a fresh, tested, broken or invalidated lifecycle: wick tests, closing breaks, and an invalidation line at the 0.786 retracement by default. Detects swings confirmed by 20 bars per side, keeps the three most recent pockets, and alerts on entries, rejections, breaks and invalidations.

- Indicator in the LuxAlgo Library, by LuxAlgo, published May 25, 2026.
- Access: free.
- Concepts: [Golden Pocket](https://www.luxalgo.com/library/concept/golden-pocket/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=mojif38in9nstn4wp9t84c94
- Page: https://www.luxalgo.com/library/indicator/golden-pocket/

**Golden Pocket** draws the [golden pocket](https://www.luxalgo.com/library/concept/golden-pocket/) (the retracement band spanning the 0.618 and 0.65 ratios of a measured leg) across every confirmed swing, so the deep-pullback zone is anchored mechanically instead of by hand. Swings confirm with 20 bars on each side by default; upward legs produce bullish pockets, downward legs bearish ones. Each pocket runs a strict lifecycle (zone tests register on wicks, breaks and invalidation only on closes) with a status label following the band from fresh through tested, broken or invalidated.

## How to Trade the Golden Pocket?

- **Price enters a bullish pocket**: the pullback reached the band. Demand a trigger rather than a blind fill; an alert covers the touch.
- **Rejection inside the band**: a wick pierces the pocket and the bar closes back beyond it, strengthening the continuation read.
- **Pocket broken on a close**: acceptance beyond the band points toward the 0.786 level, where the premise gets its final test.
- **Invalidation**: a close through the invalidation level cancels the pocket.

The dotted swing leg shows the anchors the levels inherit, and the dashed line marks where stops framed by the zone logic belong.

## Golden Pocket Settings

- **Swing Length** (default 20): bars each side required to confirm a swing.
- **Pocket Legs** (default Both): draw pockets on bullish legs, bearish legs, or both.
- **Pocket Band** (defaults 0.618 to 0.65): the two retracement ratios bounding the band.
- **Invalidation** (default 0.786 Level): break the premise at the 0.786 retracement or at the swing origin.
- **Maximum Pockets** (default 3): most recent pockets kept on the chart.
- **Keep Invalidated Pockets** (default disabled): retain cancelled pockets, grayed and frozen.
- **Style toggles**: swing leg, invalidation line and labels on by default; rejection markers off.

## Frequently Asked Questions

### How does the Golden Pocket differ from DiNapoli Levels?
Both build zones from Fibonacci ratios, but this tool commits to a single band (0.618 to 0.65) and polices its lifecycle bar by bar. [DiNapoli Levels](https://www.luxalgo.com/library/indicator/dinapoli-levels/) works a broader retracement and expansion framework, trading breadth for the pocket's one rule-bound zone.

### Should I buy every touch of a bullish pocket?
No. The tool's own hierarchy treats a rejection (a wick through the band with a close back beyond it) as the event worth acting on, and a close through the band as the warning that the 0.786 comes next.

### What does raising the Swing Length change?
Larger values demand more bars around each pivot, so pockets anchor to slower, more significant legs and appear later; smaller values track faster swings with noisier anchors.

## Related indicators

- [MSS Sweep Fib Retrace](https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace.md
- [Market Structure & Fibonacci Zones + RR](https://www.luxalgo.com/library/indicator/market-structure-fibonacci-zones-rr/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/market-structure-fibonacci-zones-rr.md
- [9:30 AM 15m Fib Breakout](https://www.luxalgo.com/library/indicator/9-30-am-15m-fib-breakout/) (Fib Extension): markdown at https://www.luxalgo.com/library/indicator/9-30-am-15m-fib-breakout.md
- [DTFX Algo Zones](https://www.luxalgo.com/library/indicator/dtfx-algo-zones/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/dtfx-algo-zones.md
- [Fibonacci Toolkit](https://www.luxalgo.com/library/indicator/fibonacci-toolkit/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/fibonacci-toolkit.md
- [Fibonacci Ranges (Real-Time)](https://www.luxalgo.com/library/indicator/fibonacci-ranges-real-time/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/fibonacci-ranges-real-time.md
- [Fibonacci Confluence Toolkit](https://www.luxalgo.com/library/indicator/fibonacci-confluence-toolkit/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/fibonacci-confluence-toolkit.md
- [Fibonacci Grid](https://www.luxalgo.com/library/indicator/fibonacci-grid/) (Fib Retracement): markdown at https://www.luxalgo.com/library/indicator/fibonacci-grid.md

---

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