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 v3.0 - The SMC Engine identifies and plots Break of Structure (BOS) and Market Structure Shift (MSS) markers, Fair Value Gaps (FVG), Order Blocks (OB), and session ranges directly on the price chart. The script features customizable killzone strategy tracking for London and New York sessions, SMT divergence monitoring against a correlated asset, and multi-timeframe bias evaluation. Built-in account settings also track position sizing based on risk percentage.
Market structure shifts and breaks of 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
timeframe
240
htfTimeframe
Account Balance
float
10000.0
accountBalance
Risk % per Trade
float
1.0
riskPerTrade
Correlated Asset TickerID for SMT
string
TVC:DXY
correlatedAsset
Show BOS/MSS Markers
bool
true
showBOSMSS
Show Fair Value Gaps (M5)
bool
true
showFVG
Show Order Blocks (M5)
bool
true
showOB
Show Session Ranges
bool
true
showSessionRanges
London Killzone Strategy
string
OFF
londonStrategy
New York Killzone Strategy
string
OFF
newYorkStrategy
LTF Timeframe
string
1 Minute
ltfTimeframe
Bullish FVG Color
color
color.new(color.green, 80)
colorBullishFVG
Show all 17 settings
Setting
Type
Default
Variable
Bearish FVG Color
color
color.new(color.red, 80)
colorBearishFVG
Bullish Order Block Color
color
color.new(color.blue, 80)
colorBullishOB
Bearish Order Block Color
color
color.new(color.orange, 80)
colorBearishOB
BOS Marker Color
color
color.lime
colorBOS
MSS Marker Color
color
color.fuchsia
colorMSS
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 script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th
This indicator identifies Quasimodo Level (QML) market structure patterns on the price chart using a ZigZag algorithm. It includes optional directional trend filtering using dual exponential moving averages, an ADX threshold filter to verify trend strength, an
This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi
SMC Pro is an overlay indicator that maps smart money concepts on the price chart. It draws bullish and bearish order blocks with a mitigation threshold, fair value gaps, break of structure and change of character lines, and liquidity sweeps of equal highs and
This indicator implements an ICT and SMC decision engine directly on the price chart. It calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through prem
This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult