PROTECTED SOURCE SCRIPT

HTF Break & Acceptance

26
HTF Break & Acceptance is a non-repainting, multi-timeframe market structure indicator designed to detect when price breaks an important higher-timeframe support or resistance level and then shows short-term acceptance beyond that level.

Instead of reacting to every breakout, the script focuses on a strict two-step process:
1. Confirm a valid break of higher-timeframe structure
2. Confirm early acceptance within the next 1 to 2 candles
The objective is to highlight situations where continuation is structurally supported, not just momentarily driven by volatility.
________________________________________
CORE CONCEPT
True continuation moves usually show both:
• A decisive break of higher-timeframe structure
• Follow-through acceptance above or below the same level
This indicator models that process using a state-driven logic to filter false breakouts and weak continuation attempts.
All calculations are bar-close based and non-repainting.
________________________________________
HOW IT WORKS
The script uses a four-state engine:
WAIT → BRK → READY → LOCKED
1. WAIT
The system waits for price to approach higher-timeframe support or resistance.
2. BRK (Structure Break)
A valid break is detected when price moves beyond the HTF level, optionally confirmed by HTF close and filtered using an ATR buffer.
3. READY (Acceptance)
Within the next 1–2 candles, price must hold beyond the same level by more than the buffer.
If this happens, the setup is marked as accepted.
4. LOCKED / RESET
After one confirmation cycle, the setup is locked and then automatically reset to avoid repeated signals from the same level.
If acceptance does not occur within the allowed window, the setup is cancelled.
________________________________________
HIGHER TIMEFRAME STRUCTURE
Support and resistance levels are derived from the selected higher timeframe using rolling highs and lows over a configurable lookback period.
Common usage examples:
• Intraday trading → Daily HTF
• Swing trading → Weekly HTF
________________________________________
ATR BUFFER
An optional ATR-based buffer is applied to:
• Reduce false breaks
• Filter small spikes
• Require meaningful displacement beyond the level
________________________________________
INTENDED USE
This indicator is designed to support:
• Breakout and continuation analysis
• Entry timing after structural confirmation
• Risk planning around HTF levels
• Filtering false breakouts
• Multi-timeframe context building
It does not manage trades, position size, or risk, and does not provide automated entries or exits.
Labels and alerts are contextual markers only.
________________________________________
IMPORTANT NOTES
• Non-repainting
• Bar-close confirmed logic
• One-shot confirmation per level
• Works on any market and timeframe
• Best used alongside your own execution and risk rules
________________________________________
DISCLAIMER
This indicator is provided for educational and analytical purposes only and does not constitute financial or investment advice.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.