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
Quantum Flow - FVG CE + TP Tiers calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through premium or discount valuation gates, opposing order block guards, 3-factor chop detection, and session-phase routing. A built-in statistics engine tracks simulated historical performance across zone taps, magnets, and liquidity sweeps.
Fair Value Gap Consequent Encroachment entry triggers
Multi-tier profit targets with structure-anchored stop loss
Premium and discount valuation discipline gates
Historical reactivity store and magnet level tracking
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Profile
string
Auto
i_profOverride
HARD D/P GATE (Disc Buys / Prem Sells)
bool
true
i_useDPGate
└ Buy: max P/D %
float
50.0
i_discMaxPct
└ Sell: min P/D %
float
50.0
i_premMinPct
OPPOSING OB GUARD
bool
true
i_useOBGuard
└ Guard dist (ATR)
float
2.0
i_obGuardATR
Sells require OB/Breaker contact
bool
true
i_reqOBForSell
Breaker entries require pattern
bool
true
i_reqPatternBrk
FIXED $ SL/TP (Gold 20/50)
bool
true
i_useFixedSLTP
└ Fixed SL ($)
float
20.0
i_fixedSL
└ Fixed TP ($)
float
50.0
i_fixedTP
Show v18 reject markers
bool
true
i_showV18Marks
Show all 40 settings
Setting
Type
Default
Variable
Take Trade on FVG CE Touch
bool
true
i_useFVGCEEntry
FVG CE: Require Bias Alignment
bool
true
i_fvgCEReqBias
FVG CE: First Touch Only
bool
true
i_fvgCEFirstOnly
FVG CE: Skip in Hard Chop
bool
true
i_fvgCESkipChop
FVG CE: Skip when ADR Exhausted
bool
true
i_fvgCESkipADR
P1: Structure-Anchored SL
bool
true
i_useStructSL
└ Min SL ATR Mult
float
1.3
i_slATRMult
└ Buffer ATR Mult
float
0.2
i_slBuffer
P1: Liquidity-Cascade TP
bool
true
i_useLiqCascade
P1: Extended P/D Tiers
bool
true
i_useExtPDTiers
P1: 3-Factor Chop Detection
bool
true
i_use3FactorChop
P1: Session-Phase Routing
bool
true
i_useSessPhase
P2: Historical Reactivity Store
bool
true
i_useHRS
└ Level Cluster Tol
float
0.20
i_hrsTolATR
└ Max Tracked Levels
int
80
i_hrsMaxLevels
└ Reaction Threshold
float
1.0
i_hrsReactionATR
P2: HTF Zone Import
bool
true
i_useHTFImport
P2: Magnet Level Detection
bool
true
i_useMagnet
P2: Bilateral Zone Conversion
bool
true
i_useBilateral
P3: Bayesian Per-Zone WR
bool
true
i_useBayesian
└ Prior WR
float
0.65
i_bayesPrior
└ Shrinkage Strength
int
10
i_bayesShrink
P3: Decision Authority Waterfall
bool
true
i_useDecisionWF
P3: Probabilistic Bias Gate
bool
true
i_useProbBias
P3: Pre-Signal Engine
bool
true
i_usePreSignal
P3: Live Trade Quality Monitor
bool
true
i_useTradeQual
Two-Phase Zone Entry
bool
true
i_useZoneEntry
Validation Window (0=auto)
int
0
i_pendingBars
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
Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b
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 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