OPEN-SOURCE SCRIPT
已更新

Prison Escape Breakout Strategy

1 011
Prison Escape Breakout Strategy
Description:
The Prison Escape strategy is a high-precision momentum trading system optimized for the NYSE Open. It utilizes structural price action geometry to define a high-probability "Volatility Box" and executes breakouts during the market's peak liquidity window. By integrating structural pivots with Fair Value Gap (FVG) Absorption tracking, the strategy provides a comprehensive view of institutional imbalances and range dynamics.

How it Works:
The script operates in four distinct phases to ensure entries are backed by both structural breakouts and momentum:

1. Range Definition (The Alphabet):
Starting at 08:30 AM CST, the script labels price swings with alphabetical anchors (A, B, C...). It identifies the Widest Range Sentiment—the two specific pivots within your chosen letter sequence (e.g., A-D) that represent the greatest distance. This "Prison" range defines the battlefield for the session.

2. Fair Value Gap (FVG) Absorption:
The strategy continuously monitors for institutional imbalances (Fair Value Gaps). It calculates the width of these gaps based on a dynamic ATR filter to ensure only significant gaps are shown.

Mitigation Tracking: Unlike static indicators, this tracks the "absorption" of the gap. It visually displays what percentage of the imbalance has been filled, helping identify where price might find magnets or support/resistance.

3. The Escape (Breakout Trigger):
The strategy waits for price to "break out of prison" with strict confirmation:

Sustained Breakout: Requires two consecutive closes outside of the high or low of the established range to filter out "stop hunts" and "fakeouts."

The Midline Rule: After an initial breakout, the strategy can take a second trade, but only if price has first returned to touch the Midline, ensuring sufficient mean reversion before the next momentum leg.

4. Strict Time Discipline:

Entry Window: New trades can only be initiated between 08:30 AM and 10:30 AM CST.

Trade 1 Duration Filter: Trade 1 is subject to a "Time Multiplier" (1x, 2x, or 3x the range duration). If the breakout happens too late, the trade is voided to avoid low-volume "grinds."

Hard Exit: All positions are market-closed at 12:30 PM CST to eliminate exposure to afternoon chop.

Key Features:
Sentiment Panel: A real-time dashboard displaying the "Selected Range" letters, total bar count, and a Bullish vs. Bearish candle count ratio within the range.

Dynamic Take Profit: Choose between a Fixed Point target or the Midline Distance (which projects a 1:1 move of the range's internal volatility).

Adaptive Stop Loss: Define risk based on the Breakout Line, the Midline, or the Opposite Range Line.

FVG Visualization: Real-time boxes that shrink as they are mitigated, providing a clear map of remaining market imbalances.

Technical Instructions for Users:
Timeframe: Optimized for 1-minute to 5-minute charts.

Symbol: Designed for Indices (NAS100, US30, SPX500) and high-volume instruments.

Timezone: Hardcoded for America/Chicago (CST/CDT) to align precisely with the NYSE bell.

Pine Script Settings Guide:
Zig Zag Depth: Higher = major structural pivots; Lower = micro-swings.

Search Start/End Letter: Defines the window of pivots used to find the "Prison" range (Default: A to D).

Take Profit Source: Use "Midline Distance" for a target that scales automatically with the day's volatility.

FVG Width Filter: Filters out tiny gaps. A setting of 0.5 means the gap must be at least 50% of the current ATR to be displayed.
版本注释
Fair Value Gaps only show within the morning session

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。