PROTECTED SOURCE SCRIPT
Atualizado CCT [masterchi]

CCT - Candle Continuation Theory
A visual tool for tracking Higher Timeframe (HTF) candle structure and virgin level breaks.
Features:
Side Panel HTF Candles
Virgin Level Detection
Dual Display
Customization
Use Case: Identify when price breaks through untested HTF levels - these breaks often lead to continuation or provide key areas for pullback entries.
A visual tool for tracking Higher Timeframe (HTF) candle structure and virgin level breaks.
Features:
Side Panel HTF Candles
- Displays HTF candles (default: 1H) in a compact panel to the right of your chart
- Shows the last 5 completed HTF candles plus the current developing candle
- Real-time countdown timer shows time remaining in current HTF bar
Virgin Level Detection
- Automatically identifies "virgin" highs and lows from HTF candles
- A level remains virgin until price touches it
- When a candle CLOSES beyond a virgin level, it's marked as "broken"
- Blue lines = broken virgin highs | Red lines = broken virgin lows
- Note: Only levels from candles currently in the Side Panel are tracked - as older candles scroll out, their levels are no longer displayed
Dual Display
- Broken levels shown on both the Side Panel and Main Chart
- Lines stop 1 candle after the breaking candle (or extend with option)
Customization
- Configurable HTF timeframe
- Line style (Solid/Dashed/Dotted) and thickness
- Full color control for Side Panel candles and broken levels
- Toggle visibility for all elements
Use Case: Identify when price breaks through untested HTF levels - these breaks often lead to continuation or provide key areas for pullback entries.
Notas de Lançamento
Added Virgin Level Sweep Alerts- Added optional alert when virgin levels are swept by HTF body close
- Alert message indicates whether HIGH or LOW was swept
Notas de Lançamento
Added "Active Level" option to extend broken lines by 1 HTF bar. Helps visualize the level during the candle immediately following the break.Added Unconfirmed levels - "Developing Line Style" option (default: Dotted) when HTF bar is not closed yet.
Also changed some default settings.
Notas de Lançamento
Added Show Developing Lines - Uncheck it to hide the developing lines until they are actually brokenNotas de Lançamento
Persistent Golden Hour & Entry RefinementsThis major update enhances the backtesting and replay capabilities of the indicator, along with providing more flexible entry management options.
Key Features:
Persistent Golden Hour: The vertical lines framing the "Golden Hour" (after the break of a virgin level) and the associated setups (Gaps, Entry Lines, Stop Loss Labels) now remain permanently visible on the chart by default. This allows for effective historical analysis and backtesting of past setups.
Stop Loss Basis Options: You can now choose how the Stop Loss size is calculated via the new "Stop Loss Basis" input:
- Fractal (Default): Calculates stop size based on the nearest 3-bar fractal High/Low.
- Gap High/Low: Calculates a tighter stop based on the High (for Shorts) or Low (for Longs) of the Gap itself.
Entry Model Visuals:
Simplified label format to +SL / -SL.
Added dedicated color inputs for "Bearish Gap (For Buys)" and "Bullish Gap (For Sells)" with adjustable transparency.
Notas de Lançamento
v0.12.0 - Side Panel Performance Optimization> Developing candle now updates every bar using persistent objects
> Eliminated lag in developing HTF candle display
> Timer label updates in real-time without redraw
v0.11.0 - FVG Filters
> Added new "FVG Filters" input group for signal filtering
> Max Bars for Inversion: Limit how many bars an FVG can wait for break
> Box Extension: Extend FVG boxes beyond standard c1-c3 range
> Size Filter: Filter FVGs by minimum size (Ticks or ATR multiple)
> Fixed FVG duplicate detection bug causing gaps to disappear in realtime
v0.10.0 - Golden Hour Only Option
> Added "Golden Hour Only" toggle to control virgin level line length
> OFF: Level lines span 3 hours (from source candle through Hour 3)
> ON: Level lines span only Hour 3 window, with vertical lines framing each
v0.9.5 - Input UI Reorganization
> Split "Side Panel" into 3 groups: Side Panel, Virgin Levels, Side Panel Colors
> Line Width now has clear label with tooltip explaining it applies to both styles
> Renamed "Line Style" to "Confirmed" and "Developing Style" to "Developing"
> Line Width moved to its own row for better visibility
v0.9.4 - Timer
> Fixed HTF timer not counting in live mode after replay mode changes
> Fixed "Time left HTF" always showing 0m (dev_htf_t initialization)
> Improved live/replay detection for countdown timer
> Fixed developing HTF candle lag (now captures latest tick in drawing block)
Notas de Lançamento
v0.14.0 - Historical Virgin Levels> Added "Show Historical Levels" option (default: ON)
> Shows broken virgin levels from HTF bars not visible in side panel
> Added "Historical Lookback" input to control scan depth (default: 100 bars)
> Increased HTF history buffer to match historical lookback setting
> Chart lines drawn for all historical broken levels
v0.13.1 - Fix: Side panel objects created at correct bar_index position
> Fixed "too far from current bar index" error on historical bars
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.