This strategy detects liquidity sweeps and market structure shifts by computing swing highs and lows on a base timeframe then drawing zones around them.
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
On a confirmation timeframe it identifies sweeps when price exceeds zone boundaries followed by rejection candles. Entries trigger on confirmed sweeps with stops placed beyond the extreme using a percentage buffer. Optional volume spike filters can be enabled and positions sized as a percentage of equity. The strategy overlays signals directly on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Base timeframe for swings
timeframe
60
base_tf
Confirm timeframe (sweep detection)
timeframe
1
confirm_tf
Swing lookback (bars on base TF)
int
24
swing_lookback
Minor structure lookback (bars on confirm TF)
int
5
structure_lookback
Zone margin % (e.g. 0.15% = 0.0015)
float
0.0015
zone_margin_pct
Sweep buffer % (how far beyond zone counts as sweep)
float
0.0015
sweep_buffer_pct
Rejection window (candles on confirm TF)
int
2
rejection_candles
Stop buffer beyond sweep extreme (pct)
float
0.0008
stop_buffer_pct
Require volume spike on sweep?
bool
false
use_volume_filter
Volume multiplier (if used)
float
2.0
volume_multiplier
Use mark price for SL placement (where supported)
bool
false
use_mark_price
Webhook secret (included in payload for middleware verification)
string
alert_secret
Show all 15 settings
Setting
Type
Default
Variable
Use limit entry (try get better price) else market
bool
false
entry_type_limit
Limit offset (ticks) from last close if using limit entry
float
0.0
limit_offset_ticks
Order size: percent of equity per trade
float
1.0
qty_percent
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 enters trades in the opposite direction of filled value gaps, operating under the assumption that price action will resume the primary trend after filling a recent gap. It plots directly on the main price chart and supports MA-based trend filters
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
This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots
Calculates three-bar Fair Value Gaps (FVG) and filters them using Average True Range. When price mitigates the FVG midpoint, the strategy enters a position in the direction of the gap, provided an optional EMA trend filter is satisfied. Exits are defined by an
This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m
RG Structure is a pivot-constrained break-and-retest strategy that calculates dynamic trendlines, market structure changes, and regime states on the price chart. It identifies support and resistance lines through pivot points and evaluates break-and-retest sig