Indicator Β· Pine Script v5 Β· On the chart

Apex Protocol - The SMC Engine

by alboogycOdR

Apex Protocol - The SMC Engine is a Smart Money Concepts indicator designed for price chart analysis across multiple timeframes.

View on GitHub

Repaints

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code758
Settings40inputs
LicenceNone stated
Last update7 months ago16 Mar 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

alboogycOdR on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Sessions & time, Support & resistance

Markets

Gold, Forex

Timeframes

M1-M5, M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
πŸ“ˆ Higher Timeframe (HTF)timeframe240i_htf_timeframe
πŸ“‰ Lower Timeframe (LTF)stringO_M1i_ltf_timeframe_str
🎯 Risk/Reward Ratiofloat2.0i_rr_ratio
πŸ”— SMT Correlation AssetsymbolTVC:DXYi_corr_asset_ticker
πŸ‡―πŸ‡΅ Midnight Killzonesession0000-0300i_midnight_session
↳ Midnight StrategystringO_MIDNIGHTi_midnight_strategy
πŸ‡¬πŸ‡§ London Killzonesession0800-1100i_london_session
↳ London StrategystringO_COREi_london_strategy
πŸ‡ΊπŸ‡Έ New York Killzonesession1500-1800i_ny_session
↳ New York StrategystringO_SILVERi_ny_strategy
πŸ“ Show BOS/MSS Markersbooltruei_show_bos_mss
πŸ“¦ Show Order Blocksbooltruei_show_ob
Show all 40 settings
SettingTypeDefaultVariable
⚑ Show Fair Value Gapsbooltruei_show_fvg
πŸ“ Show Auto Fibonaccibooltruei_show_fibs
🏯 Show Asian Session Rangeboolfalsei_show_session_ranges
πŸ”„ Show CISD Signalsbooltruei_show_cisd
↳ CISD MethodstringLiquidity Sweepi_cisd_method
↳ Label SizestringSmalli_cisd_label_size
↳ Swing Lengthint5i_cisd_swing_length
↳ Bullish Colorcolorcolor.greeni_cisd_bull_color
↳ Bearish Colorcolorcolor.redi_cisd_bear_color
↳ Max Validity (bars)int50i_cisd_max_validity
↳ Min Duration (bars)int3i_cisd_min_duration
πŸ“Š Max Order Blocks Displayedint10i_show_last
πŸ“ˆ Show Higher Highs/Lower Highsbooltruei_show_hh_lh
πŸ“‰ Show Higher Lows/Lower Lowsbooltruei_show_hl_ll
🎯 Show Area of Interestbooltruei_show_aoe
πŸ” Show External Structurebooltruei_show_ext_structure
↳ External TypestringAlli_ext_structure
↳ External Sensitivityint25i_ext_sens
πŸ”¬ Show Internal Structurebooltruei_show_int_structure
↳ Internal TypestringAlli_int_structure
↳ Internal Sensitivityint3i_int_sens
🎨 Bullish Signal Colorcolorcolor.greenc_bullish
🎨 Bearish Signal Colorcolorcolor.redc_bearish
🎨 Session Range Colorcolorcolor.new(color.blue, 90)c_session_range
🎨 Dashboard Header Colorcolorcolor.yellowc_dashboard_header
🎨 Dashboard Text Colorcolorcolor.whitec_dashboard_text
🎨 Status ARMED Colorcolorcolor.limec_dashboard_status_armed
🎨 Status Other Colorcolorcolor.whitec_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.

Similar Pine Scripts

Golden Bullet Strategy

by TradersPost
218 stars

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

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago Β· None stated GitHub repository of Golden Bullet Strategy

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

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

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

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
19 stars

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

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago Β· MIT GitHub repository of ICT Killzones & Pivots

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

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago Β· MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers