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
Apex Protocol - The SMC Engine automatically detects key SMC market structure events including Break of Structure (BOS), Market Structure Shifts (MSS), Order Blocks, Fair Value Gaps (FVG), and Change in State of Delivery (CISD) signals. The script tracks Midnight, London, and New York session killzones alongside Auto Fibonacci levels and SMT correlation against benchmark tickers like DXY. It plots structure markers, session ranges, and areas of interest directly on the main chart using higher timeframe context with lookahead functionality.
Market structure markers for BOS, MSS, Order Blocks, and FVG
Change in State of Delivery (CISD) liquidity sweep detection
Midnight, London, and New York session killzones
SMT correlation tracking against benchmark assets
Auto Fibonacci retracements and area of interest zones
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
π Higher Timeframe (HTF)
timeframe
240
i_htf_timeframe
π Lower Timeframe (LTF)
string
O_M1
i_ltf_timeframe_str
π― Risk/Reward Ratio
float
2.0
i_rr_ratio
π SMT Correlation Asset
symbol
TVC:DXY
i_corr_asset_ticker
π―π΅ Midnight Killzone
session
0000-0300
i_midnight_session
β³ Midnight Strategy
string
O_MIDNIGHT
i_midnight_strategy
π¬π§ London Killzone
session
0800-1100
i_london_session
β³ London Strategy
string
O_CORE
i_london_strategy
πΊπΈ New York Killzone
session
1500-1800
i_ny_session
β³ New York Strategy
string
O_SILVER
i_ny_strategy
π Show BOS/MSS Markers
bool
true
i_show_bos_mss
π¦ Show Order Blocks
bool
true
i_show_ob
Show all 40 settings
Setting
Type
Default
Variable
β‘ Show Fair Value Gaps
bool
true
i_show_fvg
π Show Auto Fibonacci
bool
true
i_show_fibs
π― Show Asian Session Range
bool
false
i_show_session_ranges
π Show CISD Signals
bool
true
i_show_cisd
β³ CISD Method
string
Liquidity Sweep
i_cisd_method
β³ Label Size
string
Small
i_cisd_label_size
β³ Swing Length
int
5
i_cisd_swing_length
β³ Bullish Color
color
color.green
i_cisd_bull_color
β³ Bearish Color
color
color.red
i_cisd_bear_color
β³ Max Validity (bars)
int
50
i_cisd_max_validity
β³ Min Duration (bars)
int
3
i_cisd_min_duration
π Max Order Blocks Displayed
int
10
i_show_last
π Show Higher Highs/Lower Highs
bool
true
i_show_hh_lh
π Show Higher Lows/Lower Lows
bool
true
i_show_hl_ll
π― Show Area of Interest
bool
true
i_show_aoe
π Show External Structure
bool
true
i_show_ext_structure
β³ External Type
string
All
i_ext_structure
β³ External Sensitivity
int
25
i_ext_sens
π¬ Show Internal Structure
bool
true
i_show_int_structure
β³ Internal Type
string
All
i_int_structure
β³ Internal Sensitivity
int
3
i_int_sens
π¨ Bullish Signal Color
color
color.green
c_bullish
π¨ Bearish Signal Color
color
color.red
c_bearish
π¨ Session Range Color
color
color.new(color.blue, 90)
c_session_range
π¨ Dashboard Header Color
color
color.yellow
c_dashboard_header
π¨ Dashboard Text Color
color
color.white
c_dashboard_text
π¨ Status ARMED Color
color
color.lime
c_dashboard_status_armed
π¨ Status Other Color
color
color.white
c_dashboard_status_other
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 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
Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc