# PRZ Execution

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

Manages the test of a harmonic potential reversal zone from arrival to outcome: auto-projects a 0.786-0.886 completion window from the latest X-A-B-C swings or takes manual levels, grades the terminal price bar, confirms entries, and resolves each episode as a Type I reversal, Type II retest, invalidation or expiry. A status table tracks state and stop distance, with nine alerts along the way.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 13, 2026.
- Access: free.
- Concepts: [PRZ Execution](https://www.luxalgo.com/library/concept/prz-execution/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=p8fl4itgxxg0t4n57mavtxbk
- Page: https://www.luxalgo.com/library/indicator/prz-execution/

**PRZ Execution** starts where pattern recognition stops, the first library tool for [PRZ execution](https://www.luxalgo.com/library/concept/prz-execution/), managing price from arrival in a potential reversal zone to a graded outcome. Auto mode projects a completion window past the latest X-A-B-C swings from XA ratios, plus a limiting level; Manual mode takes any measured zone. From first touch a state machine runs (test, terminal price bar, entry, resolution), tracked in a status table.

## How to Trade the PRZ Execution?

- **Terminal price bar**: tests the whole zone and is graded on its close. Back toward structure is constructive, wide beyond it the classic warning; both alerted.
- **Entry confirmation**: the default waits for terminal-bar rejection; Close back inside structure is earlier, First zone touch mimics a limit at D.
- **Type I vs Type II**: a prompt reaction that stays clear of the zone is Type I; a retest that holds near the original extreme and rejects is Type II. Deep retests demand more evidence.

## PRZ Execution Settings

- **Zone source** (default Auto (harmonic completion window)).
- **Swing pivot length** (default 8): pivot confirmation bars.
- **Completion ratio - near edge** (default 0.786) and **Completion ratio - far edge** (default 0.886).
- **Invalidation ratio (limiting level)** (default 1.0): the void level (X for retracements).
- **Manual - direction**, **Manual - zone edge A / B**, **Manual - invalidation level (0 = auto)**.
- **Entry confirmation** (default Terminal bar rejection).
- **ATR length** (default 14), **Wide bar threshold (x ATR)** (default 1.5), **Reaction distance (x zone height)** (default 2.0) and **Type I: bars clear of the zone** (default 10).
- **Retest tolerance (x zone height)** (default 0.5), **Closes beyond limit to invalidate** (default 2), **Episode timeout (bars)** (default 100) and **Max acceptable stop distance (%)** (default 2.0): wider zones grade "too wide, pass".
- Display toggles for labels, table, zone transparency.

## Frequently Asked Questions

### How does this relate to pattern detectors like the Crab?

A [Crab®](https://www.luxalgo.com/library/concept/crab/) detector finds the five points and draws the completion zone; it does not say what to do when price arrives. This build owns that second half; manual mode manages a zone from any pattern.

### Why two closes to invalidate instead of one?

Zones are routinely wicked through, so the limiting level voids the pattern only on decisive acceptance: consecutive closes beyond it. A violated zone is itself trend-strength information.

### What happens if the test never resolves?

After the timeout an unresolved episode closes with an Expired tag. The build re-arms on the next qualifying sequence or, in manual mode, once price clears the zone again.

---

Bat®, Crab®, Shark®, AB=CD® and 5-0® are registered trademarks of their owner, used here only to identify the patterns. LuxAlgo's tools are independent implementations and are not affiliated with or endorsed by the trademark owner.

## Related indicators

- [Cypher](https://www.luxalgo.com/library/indicator/cypher/) (Elliott & Harmonics): markdown at https://www.luxalgo.com/library/indicator/cypher.md
- [Harmonic Pattern Detection](https://www.luxalgo.com/library/indicator/harmonic-pattern-detection/) (Harmonic Patterns): markdown at https://www.luxalgo.com/library/indicator/harmonic-pattern-detection.md
- [Half-Retracement Reversal Detector](https://www.luxalgo.com/library/indicator/5-0/) (5-0): markdown at https://www.luxalgo.com/library/indicator/5-0.md
- [Measured Move Detector](https://www.luxalgo.com/library/indicator/abcd/) (ABCD): markdown at https://www.luxalgo.com/library/indicator/abcd.md
- [Three Drive Pattern Detector](https://www.luxalgo.com/library/indicator/three-drive-pattern-detector/) (Three Drives): markdown at https://www.luxalgo.com/library/indicator/three-drive-pattern-detector.md
- [Potential Reversal Zone](https://www.luxalgo.com/library/indicator/potential-reversal-zone/) (Elliott & Harmonics): markdown at https://www.luxalgo.com/library/indicator/potential-reversal-zone.md
- [Anti-patterns](https://www.luxalgo.com/library/indicator/anti-patterns/) (Elliott & Harmonics): markdown at https://www.luxalgo.com/library/indicator/anti-patterns.md
- [RSI BAMM](https://www.luxalgo.com/library/indicator/rsi-bamm/) (Elliott & Harmonics): markdown at https://www.luxalgo.com/library/indicator/rsi-bamm.md

---

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