PROTECTED SOURCE SCRIPT

HTF Breaker Blocks [TakingProphets]

130
HIGH TIME FRAME BREAKER BLOCKS [TakingProphets]


High Time Frame Breaker Blocks [TakingProphets] detects ICT-style Breaker Blocks using a structure shift + breaker
candle selection process, then plots clean, forward-extending breaker zones on the current timeframe and
projects the same logic from higher timeframes down onto your chart.

This version is designed to match the UI and behavior style of our HTF Rejection Blocks v2
- minimal settings
- strict object management to prevent clutter and object limit issues
- closest-per-side filtering per timeframe

-----------------------------------------------------------------------------------------------
WHAT IS A BREAKER BLOCK
-----------------------------------------------------------------------------------------------

A Breaker Block is a structure-based zone that forms after a market structure shift is confirmed, using a
specific breaker candle to define the zone boundaries.

Conceptually
- price breaks structure
- a qualifying breaker candle is selected inside the swing range
- that candle’s range becomes the breaker zone
- the breaker zone is extended forward until invalidated

-----------------------------------------------------------------------------------------------
WHAT THIS INDICATOR DISPLAYS
-----------------------------------------------------------------------------------------------

Current Timeframe Breaker Blocks
- Detects breaker blocks on the chart timeframe
- Creates a clean breaker zone and extends it forward
- Optional 50% level through the breaker
- Optional invalidation handling

Higher Timeframe Breaker Blocks Projection
- Projects breaker blocks from up to 3 higher timeframes onto your current chart
- HTF events are calculated inside request.security with lookahead off
- Invalidation for HTF breakers is based on the source timeframe close
- Per HTF timeframe, keeps only the closest N bullish and the closest N bearish breakers visible

Quadrant Levels
- Optional internal levels: 0%, 25%, 50%, 75%, 100%
- Each level can be toggled independently and optionally labeled
- Midline behavior is tied to the 50% quadrant setting

-----------------------------------------------------------------------------------------------
MODEL FLOW
-----------------------------------------------------------------------------------------------

Step 1: Swing Mapping
- Internally tracks swing highs and swing lows using pivot logic
- Maintains a rolling swing state so structure events can be validated consistently

Step 2: Structure Shift Detection
- A structure shift is detected when price breaks above or below the relevant swing point
- The engine uses swing sequencing to confirm the shift and reduce noise

Step 3: Breaker Candle Selection
- Once a shift is detected, the script scans the swing range to find the qualifying candle
- The breaker zone is defined by that candle’s high and low or body range based on internal logic

Step 4: Zone Creation and Extension
- A new breaker zone is created and extended forward
- Output is a single clean zone per breaker with no extra stationary template boxes

Step 5: Invalidation
Two different invalidation rules are applied depending on where the breaker comes from

Current timeframe breakers
- evaluated on bar close
- bullish invalidates when close is below the breaker bottom
- bearish invalidates when close is above the breaker top

Higher timeframe projected breakers
- evaluated using the confirmed close of the source timeframe
- bullish invalidates when source close is at or below the breaker bottom
- bearish invalidates when source close is at or above the breaker top

Step 6: Visibility Filtering
- For each enabled higher timeframe, only the closest breakers to current price are shown
- Keeps charts readable and avoids object limit issues

-----------------------------------------------------------------------------------------------
SETTINGS GUIDE
-----------------------------------------------------------------------------------------------

General
- Maximum visible BBs per timeframe
- For each enabled higher timeframe, shows only the closest 1 or 2 bullish and the closest 1 or 2 bearish breakers
- Hide invalid breakers
- If enabled, removes breakers once invalidated
- If disabled, invalidated breakers stop extending and remain as historical reference

Higher Timeframes
- Current Timeframe
- Toggle current timeframe breaker detection on or off
- HTF1, HTF2, HTF3
- Enable and choose source timeframe to project down
- Colors
- Separate bullish and bearish colors for current timeframe and each HTF source
- Show timeframe label
- Displays the source timeframe tag on each higher timeframe breaker box

Visual
- Remove box fill
- Hides the breaker box visuals while keeping internal quadrant levels and labels
- Show quadrant levels
- Master toggle for internal levels
- Quadrant toggles
- 0%, 25%, 50%, 75%, 100%
- Optional labels per level

Alerts
- Enable Alerts
- Session windows in New York time
- Session 1, Session 2, Session 3
- Bullish BB alert
- Bearish BB alert
- Alert templates support {{symbol}} and {{tf}}

-----------------------------------------------------------------------------------------------
HOW TO USE
-----------------------------------------------------------------------------------------------

Clean HTF context on LTF execution
- Enable HTF1 such as 60m and optionally HTF2 such as 240m
- Set Maximum visible BBs per timeframe to 1 or 2 depending on how much context you want
- Keep only the 50% quadrant enabled for simple midpoint execution

If you want minimal clutter
- Enable Remove box fill
- Disable 0% and 100%
- Leave 25%, 50%, 75% or only 50%

If you want only active zones
- Keep Hide invalid breakers enabled

If you want historical reference zones
- Turn Hide invalid breakers off so invalidated zones freeze instead of disappearing

-----------------------------------------------------------------------------------------------
NOTES ON PERFORMANCE
-----------------------------------------------------------------------------------------------

This script uses internal safety caps to reduce the chance of hitting TradingView object limits
- Limits total stored breakers per higher timeframe stream
- Removes visuals for non-visible breakers instead of keeping everything drawn
- De-duplicates projected breakers to prevent stacked duplicates

-----------------------------------------------------------------------------------------------
DISCLAIMER
-----------------------------------------------------------------------------------------------

This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice.
Trading involves risk, and past performance is not indicative of future results.

© TakingProphets
-----------------------------------------------------------------------------------------------

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。