Indicator · Pine Script v5 · On the chart

Apex Protocol v3.4 - The SMC Engine

by alboogycOdR

Apex Protocol - The SMC Engine is a comprehensive Smart Money Concepts indicator that overlays key market structure levels directly on the main price chart.

View on GitHub

Repaints

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code1,188
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 v3.4 - The SMC Engine calculates internal and external market structures (BOS and MSS), Order Blocks, Fair Value Gaps (FVG), Change in State of Delivery (CISD) signals, Auto Fibonacci retracements, and SMT correlation against a secondary asset like DXY. Users can customize multi-timeframe settings, structure sensitivity, order block visibility, and session killzones for London, New York, and Midnight sessions. Multi-timeframe data uses lookahead, which can affect historical bar behavior.

Details

Published by

alboogycOdR on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

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

Markets

Gold, Forex

Timeframes

M1-M5, M15-H1, H4 and above

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
📊 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
🎨 FVG Transparency %int80i_fvg_transparency
📉 Contract Violated FVGsboolfalsei_contract_fvg
🎯 Show Only Closest FVGsboolfalsei_close_only_fvg
23.6%booltruei_show_236
i_fib1float.236i_fib1
i_fib1_colcolorcolor.grayi_fib1_col
38.2%booltruei_show_382
i_fib2float.382i_fib2
i_fib2_colcolorcolor.limei_fib2_col
50.0%booltruei_show_5
i_fib3float.5i_fib3
i_fib3_colcolorcolor.yellowi_fib3_col
61.8%booltruei_show_618
i_fib4float.618i_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.

Similar Pine Scripts

SMC Entry Filter

by andriiops
1 stars

This overlay indicator tracks confirmed swing highs and lows as liquidity levels and marks a break of structure when the close moves beyond the last swing. It detects bullish and bearish fair value gaps that meet a minimum ATR size, then plots filtered long an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of SMC Entry Filter

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 tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]

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