1Copy the scriptPress Copy script above, or the copy button on the code below.
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
213 lines of Pine Script v6 from SMC_Exit_Signal.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
SMC Exit Signal monitors trigger levels, stops, and take-profit targets to track active trades directly on the chart. It can dynamically adjust the stop loss to break-even after reaching target 1 and trigger a defensive exit if setup conditions collapse. The indicator plots active trade levels, displays enter and exit labels, and shows an on-screen status table.
Position lifecycle state machine for trade management
Automatic break-even stop adjustment after target 1
Defensive exit logic with configurable grace bars
Visual level lines for stop loss and take-profit targets
On-screen status table and trade entry or exit labels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Move stop to break-even after TP1
bool
true
move_be_after_tp1
Defensive exit on setup invalidation
bool
true
use_defensive_exit
Defensive grace bars
int
2
defensive_grace_bars
Evaluate on confirmed bars only
bool
true
confirm_bars_only
Show Stop/TP1/TP2 lines while in trade
bool
true
show_levels
Show ENTER / EXIT labels
bool
true
show_labels
Show status table
bool
true
show_table
BUS SchemaVersion
source
close
src_schema
BUS Armed
source
close
src_armed
BUS Confirmed
source
close
src_confirmed
BUS Ready
source
close
src_ready
BUS Trigger
source
close
src_trigger
Show all 16 settings
Setting
Type
Default
Variable
BUS Invalidation
source
close
src_invalidation
BUS StopLevel
source
close
src_stop
BUS Target1
source
close
src_target1
BUS Target2
source
close
src_target2
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