HTF Swing Compression Breakout

HTF swing highs and lows are calculated using pivot points from a user-defined higher timeframe. When the distance between the most recent HTF swing high and swing low contracts below a configurable threshold, the structure is considered compressed.
Once compression is present, the script monitors for price closing outside of the HTF structure:
A close above the HTF swing high marks an upside breakout
A close below the HTF swing low marks a downside breakout
To reduce repeated signals, only one breakout per direction is allowed until price closes back inside the HTF range, at which point the state resets.
Key features:
Higher-timeframe swing high / low detection
Compression logic based on absolute swing distance
Close-only breakout confirmation
Directional state control to prevent duplicate signals
Optional visual swing structure plotting
Optional alert conditions
This script is intended as a structural analysis and alerting tool. It does not include risk management, position sizing, or trade execution logic.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact readysetfire directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact readysetfire directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.