VWAP strategy rules

VWAP reclaim strategy: define the reclaim before testing it

A VWAP reclaim occurs when price trades below VWAP and then closes back above it under a written rule. The close, confirmation, entry, and invalidation all need definitions.

Direct answer

A testable long VWAP reclaim requires a prior close below Session VWAP, a later closed bar above it, a defined entry such as the next bar, and an invalidation such as a close back below VWAP or a stop below the reclaim bar. A cross alone is not evidence of a profitable strategy.

What to set before testing

Setup

Prior close below VWAP

Trigger

Closed bar back above VWAP

Example chart

SPY, 5-minute bars

Hard boundary

Exit before session reset

Four ways to define the reclaim

Choose one definition before the sample. An added filter reduces eligible signals only when applied to the same base rule and observations; trade count can also change with entry timing and position state.

Rule versionTriggerMain tradeoff
Close reclaimPrevious close < previous VWAP, current close > current VWAP; both within the same sessionSimple, but can react to a small cross
Body reclaimAt bar close, open < prior completed VWAP and close > current VWAPUses a known starting reference; does not prove the price crossed the developing line intrabar
Retest reclaimAfter a reclaim, later low <= prior completed VWAP and current close > current VWAP within a fixed deadlineMore confirmation with later entry and fewer setups
Volume-filtered reclaimThe close-reclaim condition plus a defined relative-volume ratio above a fixed thresholdAdds participation data and another parameter that can overfit

A test workflow you can audit

  1. 1

    Define the prior state

    Require at least one closed SPY 5-minute bar below Session VWAP. State whether touching the line counts.

  2. 2

    Define the reclaim bar

    Use a closed bar above VWAP, or require the candle body to cross. Do not let an intrabar move count if the test uses closed bars.

  3. 3

    Set entry and invalidation

    Enter on the next tradable price. Set the stop below the reclaim bar, below VWAP, or at a fixed ATR distance before running results.

  4. 4

    Set the clock

    Restrict entries to a stated session window and close the test position before VWAP resets. Include commission and slippage.

Checks to make on your chart

These checks keep the rule separate from the story told after a move has already happened.

Save each qualifying bar timestamp, previous/current VWAP, close values, and signal output. A screenshot alone may not retain enough precision to classify equality.

Define any morning/midday grouping before inspecting returns. The session VWAP contains different accumulated inputs at different times.

Keep stop, exit, and fill conventions fixed when isolating the reclaim definition. Record missed retests and rejected gap entries alongside executed trades.

Generate the reclaim as explicit code

Pineify can draft the conditions after session timing, reset, sizing, and execution rules are specified. Validate final syntax and the boundary cases below; generated code does not establish the strategy's profitability.

Create a Pine Script v6 strategy for SPY on 5-minute regular-session bars. Use HLC3 and an explicit session timezone and volume-inclusion rule. Require previous close < previous VWAP and current completed close > current VWAP, with both bars in the same session; equality fails. Model entry on the next available bar and allow one position at a time. Fix the stop one minimum tick below the reclaim low, define R from modeled fill to stop, and reject nonpositive R. A 2R target and optional relative-volume filter above 1.2 are illustrative parameters; define that ratio using the previous 20 completed valid-volume bars and skip missing baselines. Specify position sizing, commission, slippage, and a session-end exit early enough for the chosen fill model. Explain ambiguous same-bar stop/target ordering and do not choose a favorable path after seeing results.
Turn the rule into inspectable Pine Script

A reclaim needs a prior loss of VWAP

If price begins above VWAP and stays above it, there is no reclaim under the usual definition. For the close-based rule here, the immediately preceding completed close must be below its own VWAP. An earlier cross from above is not additionally required.

The rule must say whether the prior state uses a wick, an intrabar trade, or a closed bar. Closed bars are easier to reproduce on historical charts.

Reproduce a reclaim without inventing a fill

Synthetic observations: previous close = 100.00 and previous VWAP = 100.20; the next completed bar closes at 100.40 with VWAP = 100.30. That pair passes the strict close-reclaim rule. A close of exactly 100.30 fails. A pair spanning a session reset is rejected even if the inequalities hold.

Suppose the fixed stop is 99.90 and the next modeled entry is 101.00 after a gap. R is 101.00 - 99.90 = 1.10, so a 2R target is 103.20. Substituting the earlier signal close 100.40 would instead give R = 0.50 and target 101.40. Those are different trades, not interchangeable ways to report the same result.

TradingView normally models a market order created at bar close on the next available tick, typically the following bar open with default calculation settings. A last-session-bar exit signal may therefore fill in the next session. Set the cutoff and execution settings explicitly, and inspect bars that touch both stop and target under the selected historical price-path model.

Confirmation changes the entry price

Waiting for a retest may reduce some immediate failures, but it can also miss moves that do not return to VWAP. A later confirmation cannot be compared fairly with an earlier entry unless the fill rule is updated.

  • Record the reclaim bar close and next available entry price.
  • Do not assume a fill at VWAP unless the order could have traded there.
  • Count skipped trades when a required retest never occurs.

Common false reclaim conditions

A price can cross VWAP repeatedly during a balanced session. It can also reclaim the line late in the day when little time remains before the reset. News can move both price and volume faster than a bar-close rule can react.

These cases do not make the setup invalid. They show why session window, repeat-entry limit, and invalidation rules belong in the test.

Sources

Frequently asked questions

This page is an educational information tool, not investment advice or a recommendation to trade. Examples are test definitions, not live signals, historical results, or promises of returns. VWAP is based on past price and volume, and actual fills can differ from chart prices. Check current market data, costs, product rules, and your own risk limits before trading.

Put the VWAP rule in writing

Pineify turns a plain-language setup into Pine Script you can read, edit, and test. The script does not predict the next price.

Build a VWAP test rule