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
130 lines of Pine Script v6 from SMC_Context_Bus.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
SMC Context Bus exposes hidden numeric plots for schema version, readiness, bias, quality, market structure including break of structure and change of character, imbalances, order-block zones, liquidity sweeps, buy-side and sell-side pools, and session state. Inputs set swing length, event freshness, fair-value-gap size, order-block ATR bounds, sweep pivots and volume, and pool tolerance and candidate limits. It is observational and does not place trades or draw visible marks.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Structure swing length
int
50
swing_len
Event freshness bars
int
20
fresh_bars
FVG size threshold
float
0.0
fvg_size_threshold
Order-block ATR length
int
50
atr_len
Order-block minimum ATR
float
0.5
ob_min_mult
Order-block maximum ATR
float
2.5
ob_max_mult
Sweep pivot length
int
5
sweep_pivot_len
Sweep volume length
int
20
sweep_volume_len
Pool pivot length
int
5
pool_pivot_len
Pool tolerance %
float
0.1
pool_tolerance_pct
Pool candidate limit
int
20
pool_max_levels
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.
AmiComStrategy is an indicator that calculates correlations between securities using the Corell indicator over specified timeframes such as 5D. It filters trading opportunities based on session times like 1300-1700 and security up and down times such as 3H. Th
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 overlays options gamma-exposure levels, session VWAP bands, and intraday market structure tools directly on the price chart. It provides three modular components: strike walls with standard deviation bands and opening ranges, a gamma regime engi
This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl
This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo
This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li
Indicatorv5SMC / ICT / price actionSessions & time