INVITE-ONLY SCRIPT
HTF Swing Compression Breakout

This indicator identifies higher-timeframe (HTF) swing structure and highlights close-based breakouts that occur after structural compression.
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.
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.
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系readysetfire。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
The following settings reflect how the author typically uses this indicator for structural analysis on MES:
Chart timeframe: 30-minute
HTF Swing Timeframe: 30-minute
HTF Pivot Strength: 3
Max HTF Swing Distance: 24 points
Alerts: Enabled
HTF Swing H
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系readysetfire。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
The following settings reflect how the author typically uses this indicator for structural analysis on MES:
Chart timeframe: 30-minute
HTF Swing Timeframe: 30-minute
HTF Pivot Strength: 3
Max HTF Swing Distance: 24 points
Alerts: Enabled
HTF Swing H
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。