Skip to content
All library documents

VWAP-Adjusted Price Bands with Staged Long Exits

Article TradingView scripts

Summary

This script builds a smoothed reference line from a moving average adjusted toward VWAP, then places two pairs of bands around it using rolling price standard deviation. The line is called an ML prediction in the script, but the shown calculation is a formula-based smoothing and adjustment, not a trained machine-learning model. A long entry occurs when price crosses back above a lower band; users can select which band triggers entries. Upper-band crossunders are calculated as bearish signals, but the strategy logic shown only opens long positions.

Trade management combines an initial percentage stop with three staged profit targets. After the first target is reached, a trailing stop can manage any remaining allocation. The document provides source code and configurable parameters, but no backtest results or evidence of profitability. Results will depend on instrument, timeframe, settings, and execution assumptions; the configured target quantities also need to be considered together with the remaining-position logic.

Key ideas

  • The reference line blends a moving average with VWAP using a configurable adjustment factor.
  • Standard-deviation bands around the smoothed line define potential re-entry levels.
  • Long entries follow upward crosses of a selected lower band, while the shown strategy does not open shorts.
  • The script supports three partial profit targets and can trail the remaining position after the first target.
  • The document reports no performance evidence, and its ML label does not describe a trained model.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.