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
ICT Smart Money - Phase 2: BOS & CHOCH Detection calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher lows, lower highs, and lower lows. When price breaks structure levels, the script plots BOS or CHOCH lines directly on the chart with configurable confirmation filters (Close or Wick) and customizable alerts.
Market structure swing high and low classification
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Main Swing Length
int
5
i_main_swing_length
Show Main Structure
bool
true
i_show_main_structure
Show ZigZag
bool
false
i_show_zigzag
Show BOS
bool
true
i_show_bos
Show CHOCH
bool
true
i_show_choch
BOS Confirmation
string
Close
i_bos_confirmation
BOS Extend Bars
int
50
i_bos_extend_bars
Alert on BOS
bool
true
i_alert_bos
Alert on CHOCH
bool
true
i_alert_choch
Bullish Color
color
color.new(color.green, 80)
i_color_bullish
Bearish Color
color
color.new(color.red, 80)
i_color_bearish
Neutral Color
color
color.new(color.gray, 80)
i_color_neutral
Show all 13 settings
Setting
Type
Default
Variable
Show Status
bool
true
plot_status
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 indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar
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
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu
This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR
This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo