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
MP Asia Range Sweep & Reclaim marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when price fails to hold the breakout and returns into the box. Entries can be filtered using optional RSI or MACD divergence modes and time-based filters like Tokyo lunch windows. Drawn as an overlay on the main price chart, the strategy manages trades via maximum hold bars, trade caps per session, and optional session-end exits.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Asia Box window (ET)
session
1600-1800
boxSess
Power window (ET)
session
1800-2000
powSess
Day mask (1=Sun … 7=Sat)
string
12345
dayMask
Block entries during Tokyo lunch
bool
true
useDead
Tokyo lunch (JST)
session
1130-1230
deadSess
Force flat at end of power window
bool
false
flatByEnd
Max hold (bars, 0 = off)
int
48
maxHoldBar
Min box height (ATR mult, 0 = off)
float
0.0
minBoxAtr
Max box height (ATR mult, 0 = off)
float
0.0
maxBoxAtr
Max trades per session
int
1
maxTrades
ATR length
int
14
atrLen
Min sweep depth (ATR mult)
float
0.15
minPenAtr
Show all 40 settings
Setting
Type
Default
Variable
Max sweep depth (ATR mult)
float
1.50
maxPenAtr
Sweep expiry (bars)
int
12
armExpiry
Reclaim buffer (ATR mult)
float
0.0
reclaimBuf
Allow longs (sweep box low)
bool
true
allowLong
Allow shorts (sweep box high)
bool
true
allowShort
Divergence mode
string
Box-anchored
divMode
Oscillator
string
RSI
oscType
Oscillator source
source
close
oscSrc
Oscillator length
int
14
oscLen
MACD fast
int
12
macdFast
MACD slow
int
26
macdSlow
MACD signal
int
9
macdSig
Location gate
string
Current pivot
locMode
Fixed overbought
float
70
fixedOB
Fixed oversold
float
30
fixedOS
Adaptive zone lookback
int
200
pctLen
Magnitude mode
string
StdDev
magMode
Min osc delta (σ)
float
0.5
magStd
Min osc delta (absolute)
float
3.0
magAbs
σ lookback
int
100
magStdLen
Min price delta (ATR mult)
float
0.25
minPriceAtr
Pivot lookback left
int
5
lbL
Pivot lookback right
int
5
lbR
Pivot occurrences to scan
int
3
occScan
Min bars between pivots
int
5
rangeLower
Max bars between pivots
int
60
rangeUpper
Max divergence age at entry (bars)
int
10
divFresh
Require volume spike on sweep bar
bool
false
useVolSpk
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 strategy overlays trade setups directly on the price chart using fast, slow, and trend EMAs alongside RSI, ATR, ADX, and volume moving averages. It generates long and short signals through trend-pullback or mean-reversion logic, filtered across multiple t
This strategy executes an opening-range liquidity fade based on the first candle of a session. It qualifies the opening range against the daily ATR to confirm manipulation or liquidity spikes. If qualified, it searches for reversal candlestick patterns, such a
S Trailing is a Pine Script v6 strategy that applies trailing stops to periodic cycle-based entries. It divides the bar index into cycles of 40 bars and activates at specific phases: long entry with trailing price stop at phase 0, short entry at phase 14, plus
Calculates standard Bollinger Bands and identifies band expansion breakouts where upper and lower bands move in opposite directions. It enters long positions when price breaks above the upper band with a high candle body percentage, and enters short positions
3C QFL Mean Reversal is a strategy based on the Quickfinger Luc (QFL) trading methodology. It identifies breakdown buying opportunities below established price base levels and enters mean-reversion trades. The strategy includes multi-safety order DCA scaling,
This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail