VWAP ReclaimVWAP Reclaim–Retest Created by Claude — User Guide
A mechanical TradingView indicator (Pine Script v6) for trading VWAP reclaims and rejections. It is built for a 5-minute chart but will run on any timeframe. It does not place trades — it identifies setups, marks entry/stop/target levels, and can fire alerts.
---
What it does
The indicator watches price relative to a daily-anchored VWAP and only signals when a specific three-step sequence completes. The point of the sequence is to stop you entering on the raw cross (which gets chopped to pieces) and instead wait for price to prove it can hold the level.
Long sequence
Reclaim — price closes above VWAP (a crossover).
Retest — within a set number of bars, price pulls back to VWAP but closes back above it. This is the "does it hold?" test. The candle that does this becomes the retest candle, and its high is recorded.
Trigger — a later candle breaks above the retest candle's high. That break is the entry.
Short sequence is the mirror image: price closes below VWAP, pops back up to VWAP but closes back below, then a later candle breaks below the retest candle's low.
A setup is abandoned (reset to idle) if price closes back through VWAP before the trigger, or if too many bars pass without a retest or trigger. This is what keeps stale setups from firing late.
---
The regime filter (why this matters most)
Reclaims only pay on directional days. On a chop/range day, price ping-pongs across VWAP and every reclaim fails. The regime filter ties each direction to VWAP's slope:
Longs only fire when VWAP is flat-to-rising.
Shorts only fire when VWAP is flat-to-falling.
Slope is measured by comparing the current VWAP to its value N bars ago (the slope lookback). This single filter removes most of the counter-trend losers. You can turn it off to see every raw setup, but leaving it on is the recommended default.
---
Reading the chart
Element Meaning
VWAP line Daily-anchored VWAP. Green = rising, red = falling, gray = flat. The color is the regime.
Shaded bands Optional ±standard-deviation bands around VWAP. Useful as context: price stretched to the outer band is extended.
LONG / SHORT triangle A confirmed trigger. Appears on the close of the trigger bar.
Entry / Stop / Target lines Drawn at each signal. Entry = the break level. Stop = beyond the retest swing plus an ATR buffer. Target = entry ± (R multiple × risk).
Background tint Faint green or red while a setup is building (reclaimed or armed) but not yet triggered — your early warning.
Status panel (top-right) Live state of each side and the current VWAP direction. States: Idle → Reclaimed → await retest → Retest → ARMED. "ARMED" means a valid retest is in place and the next break will trigger.
---
Settings, group by group
Direction
Trade long reclaims / Trade short reclaims — turn each side on or off independently. Disable one to focus, e.g. longs only on a strong up day.
VWAP
VWAP source — the price the VWAP is built from. Default `hlc3` (the standard). Change to `close` if you prefer a close-based VWAP.
Show ±SD bands — toggle the standard-deviation bands.
Band multiplier — how many standard deviations the bands sit at (1.0 default). Raise for wider context bands.
Regime filter (VWAP slope)
Only trade with VWAP slope — the regime filter described above. On by default. The single biggest filter against chop.
Slope lookback (bars) — how far back to measure slope. Lower = more sensitive (reacts fast, more flips); higher = smoother (only strong trends qualify). 10 is a reasonable 5-minute default.
Reclaim / Retest mechanics
Retest proximity (ticks to VWAP) — how close the pullback must get to VWAP to count as a retest. `0` = price must actually touch VWAP. Increase to allow near-misses where price pulls back toward VWAP but doesn't quite tag it. This is tick-based, so the right value differs by instrument (ES ticks are 0.25; a stock might be 0.01) — calibrate per symbol.
Max bars: reclaim → retest — how long after a reclaim the indicator will wait for a retest before giving up. Too low misses slow pullbacks; too high lets stale setups linger.
Max bars: retest → trigger — same idea for the window between a valid retest and the breakout trigger.
Stop / Target
ATR length — lookback for the ATR used to pad the stop.
ATR buffer beyond level — how far past the retest swing the stop sits, in ATR multiples. 0.5 = half an ATR of breathing room. Raise it if you're getting wicked out, lower it for tighter risk.
Target (R multiple) — where the target line is drawn, as a multiple of risk. 1.5 means the target is 1.5× the distance from entry to stop. This sets the displayed reward, not a hard rule — you can still manage the trade manually.
Session filter
Restrict signals to a session — off by default. Turn on to ignore signals outside a chosen window.
Session — the time window, e.g. `0945-1130` to skip the open spike and lunch chop, or `0930-1600` for the full regular session.
Timezone — the timezone the session string is read in. Default `America/New_York`.
Visuals
VWAP rising / falling / flat colors — the three slope colors.
Entry / Stop / Target colors — the three level-line colors.
Level line length (bars) — how far to the right the entry/stop/target lines extend.
Level line width — thickness of those lines.
Label size — tiny / small / normal / large for the price labels.
Show status panel — toggle the top-right state table.
Tint background while a setup is forming — toggle the faint background shading during the reclaim/armed phase.
Alerts
Three `alertcondition`s are exposed when you create an alert in TradingView: Long, Short, and Any. Pick one, set it to "Once per bar close" so it matches how signals confirm.
---
A suggested workflow
Put it on a 5-minute chart of a symbol that has volume (VWAP needs volume to compute).
Leave the regime filter on. Watch the VWAP color — that tells you which direction the indicator will even consider.
When the background tints and the status panel shows ARMED, a break is imminent; that's your prep signal.
On the triangle, the entry/stop/target lines show you the trade's geometry. Check that the target isn't sitting right on top of an obvious level (prior day high/low, round number) that would cap the move.
Forward-test on paper for 30–50 signals before sizing up. Tune one setting at a time — retest proximity and slope lookback have the biggest effect on how many signals you get and how clean they are.
---
Honest caveats
Signals confirm on the close of the trigger bar. This is the non-repainting behavior, but it means the marker appears slightly after the intrabar break where a live stop order would actually fill. The entry line shows the real break level.
The retest proximity is tick-based and must be calibrated per instrument.
It's an analysis tool, not advice. A clean ruleset still has losing streaks; the value of mechanizing is consistent, small losses so a real edge can show over a sample — not the elimination of losers. Backtest and forward-test before risking size.
Pine Script® インジケーター






















