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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
OTE Strategy Confluence finds a swing leg, applies a confluence score from structure shift, liquidity sweep, fair value gap, killzone and higher-timeframe bias, then places a limit entry inside the OTE zone, 0.705 by default. The stop sits at the leg origin plus an ATR buffer, and the target is a fixed reward-to-risk ratio or a Fibonacci projection. Sizing is fixed contracts or percent risk. It does not stack entries.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing pivot length
int
4
swingLen
Use bodies for sweep/MSS
bool
false
useBody
OTE start (shallow)
float
0.62
oteHi
OTE sweet spot
float
0.705
oteSweet
OTE end (deep)
float
0.79
oteLo
Direction
string
Both
tradeDir
Entry fib level
float
0.705
entryFib
Stop fib level (origin = 1.0)
float
1.0
slFib
Stop ATR buffer
float
0.25
slBufATR
Use fixed R:R target
bool
true
useRR
Reward : Risk
float
2.5
rr
…or fib target (if R:R off)
float
-0.62
tpFib
Show all 40 settings
Setting
Type
Default
Variable
Risk % of equity per trade
float
1.0
riskPct
Position sizing
string
Fixed contracts
qtyMode
Fixed contracts (qty)
int
1
fixedQty
Strict ICT anchor (leg must be sweep → MSS)
bool
true
strictAnchor
Require displacement (strong impulse leg)
bool
false
reqDisp
Displacement min (× ATR)
float
1.5
dispMult
Require Order Block inside OTE zone
bool
false
reqOB
Require Market Structure Shift
bool
true
reqMSS
Require liquidity sweep
bool
true
reqSweep
Require FVG inside OTE zone
bool
false
reqFVG
Require Rejection Block inside OTE zone
bool
false
reqRB
Require active killzone
bool
false
reqKZ
Min confluence score (1-8)
int
3
minScore
London killzone
session
0200-0500
kzLondon
New York killzone
session
0700-1000
kzNY
Require SMT divergence
bool
false
useSMT
Correlated symbol
symbol
CME_MINI:ES1!
smtSym
Require HTF bias agreement
bool
true
useHTF
HTF timeframe
timeframe
60
htfTF
Bias method
string
Price vs EMA
htfMethod
Fast / bias EMA
int
21
htfEmaF
Slow EMA
int
50
htfEmaS
Limit to date range
bool
false
useDates
From
time
timestamp("01 Jan 2024 00:00")
fromDate
To
time
timestamp("01 Jan 2027 00:00")
toDate
Bull color
color
color.new(color.teal, 0)
colBull
Bear color
color
color.new(color.red, 0)
colBear
Draw OTE zones
bool
true
showZones
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 strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
FairValueGap C003 is an overlay strategy that identifies Fair Value Gaps (FVG) and opens trades expecting price to return and fill the gap. It calculates the distance between current price levels and recent gap boundaries to aim for partial or full gap fills.
SMC Strategy is a Pine Script v5 overlay strategy based on smart money concepts. It flags market structure shifts from ten-bar highs and lows, draws bullish and bearish order blocks as rectangles when that option is on, and marks liquidity sweeps with short li
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt