Strategy · Pine Script v6 · On the chart

MP Asia Range Sweep & Reclaim

by midngtpickle

This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code710
Settings40inputs
LicenceCustom licence
Last update4 weeks ago27 Sep 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

midngtpickle on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Sessions & time, Divergence, Scalping, Mean reversion

Markets

Crypto

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Asia Box window (ET)session1600-1800boxSess
Power window (ET)session1800-2000powSess
Day mask (1=Sun … 7=Sat)string12345dayMask
Block entries during Tokyo lunchbooltrueuseDead
Tokyo lunch (JST)session1130-1230deadSess
Force flat at end of power windowboolfalseflatByEnd
Max hold (bars, 0 = off)int48maxHoldBar
Min box height (ATR mult, 0 = off)float0.0minBoxAtr
Max box height (ATR mult, 0 = off)float0.0maxBoxAtr
Max trades per sessionint1maxTrades
ATR lengthint14atrLen
Min sweep depth (ATR mult)float0.15minPenAtr
Show all 40 settings
SettingTypeDefaultVariable
Max sweep depth (ATR mult)float1.50maxPenAtr
Sweep expiry (bars)int12armExpiry
Reclaim buffer (ATR mult)float0.0reclaimBuf
Allow longs (sweep box low)booltrueallowLong
Allow shorts (sweep box high)booltrueallowShort
Divergence modestringBox-anchoreddivMode
OscillatorstringRSIoscType
Oscillator sourcesourcecloseoscSrc
Oscillator lengthint14oscLen
MACD fastint12macdFast
MACD slowint26macdSlow
MACD signalint9macdSig
Location gatestringCurrent pivotlocMode
Fixed overboughtfloat70fixedOB
Fixed oversoldfloat30fixedOS
Adaptive zone lookbackint200pctLen
Magnitude modestringStdDevmagMode
Min osc delta (σ)float0.5magStd
Min osc delta (absolute)float3.0magAbs
σ lookbackint100magStdLen
Min price delta (ATR mult)float0.25minPriceAtr
Pivot lookback leftint5lbL
Pivot lookback rightint5lbR
Pivot occurrences to scanint3occScan
Min bars between pivotsint5rangeLower
Max bars between pivotsint60rangeUpper
Max divergence age at entry (bars)int10divFresh
Require volume spike on sweep barboolfalseuseVolSpk
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

Quick Flip Scalper

by TradersPost
218 stars

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

Strategy v6 Sessions & timeCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Quick Flip Scalper

S Trailing

by GammaExpansion
1 stars

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

Strategy v6 Mean reversionScalping
Updated 5 days ago · MIT GitHub repository of S Trailing

3C QFL Mean Reversal

by hasnocool
106 stars

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,

Strategy v5 Mean reversionSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3C QFL Mean Reversal

ATOM 1m scalp HK

by dearvn
43 stars

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

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers