This indicator tracks swing highs and lows to detect market structure closures, specifically monitoring C2 and C3 candle closure progressions based on the TTrades Next Candle Model.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
C2 Next Candle Statistics Tracker draws active, swept, and closed-through swing lines directly on the price chart while recording C3 and C4 expansion statistics in an on-screen table. Users can filter detection by swing points, adjust lookback periods, and customize line styles and colors. It functions purely as an analytical tool without executing trades or placing stop losses.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Active Swings
bool
true
showActiveSwings
Show Swept Swings
bool
true
showSweptSwings
Max Swept Swings
int
5
maxSweptSwings
Show Closed-Through Swings
bool
false
showClosedSwings
Max Closed Swings
int
3
maxClosedSwings
Active High Color
color
color.black
activeHighColor
Active Low Color
color
color.black
activeLowColor
Swept High Color
color
color.black
sweptHighColor
Swept Low Color
color
color.black
sweptLowColor
Closed High Color
color
#616161
closedHighColor
Closed Low Color
color
#616161
closedLowColor
Active Swing Style
string
solid
activeSwingStyle
Show all 22 settings
Setting
Type
Default
Variable
Swept Swing Style
string
dashed
sweptSwingStyle
Closed-Through Swing Style
string
dotted
closedSwingStyle
Max Swing Points Stored
int
100
maxSwingPoints
Bars to Display
int
500
lookbackBars
Table Position
string
Bottom Right
table_position
Enable C2 Closure Detection
bool
true
enable_c2_detection
Enable C3 Closure Detection
bool
true
enable_c3_detection
Filter: Only at Swing Points
bool
false
filter_swing_points_only
Show Logic in Labels
bool
false
show_logic_in_labels
Show Debug Labels
bool
false
show_debug_labels
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This indicator identifies fractal-based pivot highs and lows to map out market structure directly on the price chart. It detects bullish and bearish structure breaks, automatically labeling Break of Structure (BOS) and Change of Character (ChoCH) events when p
Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib
MTF State of Delivery tracks lower timeframe and higher timeframe orderflow delivery states by identifying bullish and bearish delivery levels across timeframes. It plots confirmed and pending orderflow lines directly on the price chart and provides an optiona