This Pine Script v5 indicator is an SMC trading engine that plots order blocks, fair value gaps, break of structure markers, market structure shifts, and Fibonacci retracements on the price chart.
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 supports customizable higher and lower timeframes along with session-specific strategies including midnight reversal, london core, and ny silver. Users select a correlation asset like DXY, set risk-reward ratios, and toggle visibility of features such as CISD signals, area of interest, internal external structures, and fib levels. All elements draw directly on the main price chart. Notable limits include lookahead data usage for structure detection.
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
π 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
π¨ FVG Transparency %
int
80
i_fvg_transparency
π Contract Violated FVGs
bool
false
i_contract_fvg
π― Show Only Closest FVGs
bool
false
i_close_only_fvg
23.6%
bool
true
i_show_236
i_fib1
float
.236
i_fib1
i_fib1_col
color
color.gray
i_fib1_col
38.2%
bool
true
i_show_382
i_fib2
float
.382
i_fib2
i_fib2_col
color
color.lime
i_fib2_col
50.0%
bool
true
i_show_5
i_fib3
float
.5
i_fib3
i_fib3_col
color
color.yellow
i_fib3_col
61.8%
bool
true
i_show_618
i_fib4
float
.618
i_fib4
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 finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and
This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m
This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm
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 implements the Fractal Model concept to plot market structure shifts, liquidity sweeps, and Change in State of Delivery (CISD) levels. It overlays custom higher-timeframe candle previews, open prices, and time markers directly on the price chart
This indicator calculates pivot highs and pivot lows to detect liquidity sweeps and Swing Failure Patterns. It identifies when price breaks past recent key swing highs or lows within a configurable historical window, then looks for a quick reversal or change i