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 State Machine can require a four-hour CRT bias, an Asian range, manipulation, a New York macro window, a liquidity sweep, a market structure shift, CISD, a fair value gap, and a retracement into that gap before marking an entry-ready state. Presets toggle which stages are required. It draws state-flow labels, a state dashboard, and optional entry zones. It does not place orders or define exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
★ Use 4-Hour CRT for Bias?
bool
true
enableHtfBias
1. Require Asian Range
bool
true
enableAsianRange
2. Require Manipulation
bool
true
enableManipulation
3. Require Macro Window
bool
true
enableMacro
4. Require Liquidity Sweep
bool
true
enableSweep
5. Require Market Structure Shift
bool
true
enableMSS
6. Require CISD
bool
true
enableCISD
7. Require Fair Value Gap
bool
true
enableFVG
8. Require Retracement to FVG
bool
true
enableRetracement
Quick Presets
string
Custom
preset
Show State Flow Labels
bool
true
showStateFlow
Show State Dashboard
bool
true
showStateTable
Show all 33 settings
Setting
Type
Default
Variable
Show Entry Zones
bool
true
showEntryZones
Show Debug Info
bool
false
showDebugInfo
Show Skipped States
bool
true
showSkippedStates
Show Historic Events (Last 7 Days)
bool
false
showHistoricEvents
Asian Session
session
1900-0200
asianSession
London Session
session
0200-0700
londonSession
NY Session
session
0700-1200
nySession
NY Pre-Open Macro (8:50-9:10)
session
0850-0910
macro1
└─ Enable Pre-Open Macro
bool
true
enableMacro1
NY Continuation Macro (9:50-10:10)
session
0950-1010
macro2
└─ Enable Continuation Macro
bool
true
enableMacro2
NY Close Macro (10:50-11:10)
session
1050-1110
macro3
└─ Enable Close Macro
bool
true
enableMacro3
Min Asian Range %
float
0.2
minAsianRange
Sweep Timeout (bars after macro)
int
10
sweepTimeout
MSS Timeout (bars after sweep)
int
5
mssTimeout
Min CISD Candles
int
3
cisdMinCandles
Min FVG Size (% of ATR)
float
0.1
fvgMinSize
Retracement Timeout (bars)
int
20
retracementTimeout
Risk Per Trade %
float
1.0
riskPercent
Account Balance
float
10000
accountBalance
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.
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 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 identifies Break of Structure (BOS) and Market Structure Shift (MSS) zones, plotting automated bracket levels on the price chart. It triggers signals when a reversal breaks a swing point formed inside an opposing zone, projecting stop loss and t
MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev
Smart Money Dashboard plots key Smart Money Concepts on the price chart, including Order Blocks with mitigation tracking, Fair Value Gaps, and Equal Highs or Lows sweeps. It analyzes Cumulative Volume Delta for divergence and combines multi-timeframe structure
This indicator overlays a market structure dashboard on the price chart. It reads up to seven user-selected timeframes, each with an on/off switch and a trend weight, and shows columns for EMA trend, swing highs and lows, structure, order blocks, and fair valu