Indicator · Pine Script v6 · On the chart

V21 VWAP Mean Reversion

by snoozie-v

An indicator for four-hour charts that builds a rolling VWAP with standard deviation bands.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code421
Settings20inputs
LicenceNone stated
Last update7 months ago13 Mar 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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

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

A long signal appears when one bar closes below the lower band and the next closes back above it, and the reverse for shorts. Filters skip trades when ATR volatility is outside a range, when VWAP is too close, or against the daily regime. The stop is an ATR multiple, with an early stop move, a VWAP target and an ATR trail on a runner.

Details

Published by

snoozie-v on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Mean reversion, Volatility & bands, Volume

Markets

Crypto

Timeframes

H4 and above

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
VWAP Period (0=auto)int0vwap_period_inp
SD Entry Bands (0=auto)float0.0sd_entry_inp
ATR Stop Mult (0=auto)float0.0atr_mult_inp
Min VWAP Distance (× ATR)float2.0min_vwap_inp
ATR Vol Max % (0=auto)float0.0atr_vol_max_inp
ATR Vol Min %float0.5atr_vol_min_inp
ATR Periodint14atr_period
ATR Trail Mult (runner)float5.0atr_trail_mult
Early BE Trigger (× 1R)float0.75early_be_trig
Early BE Dest (× 1R back)float0.5early_be_dest
Enable Regime Filterbooltrueuse_regime
Allow Longs in Downtrendboolfalseallow_lt_long
Show all 20 settings
SettingTypeDefaultVariable
Allow Shorts in Uptrendboolfalseallow_ut_short
Show Entry/Exit Labelsbooltrueshow_labels
Show Target Linesbooltrueshow_targets
Show VWAP & SD Bandsbooltrueshow_bands
Account Equity ($)float10000.0account_equity
Risk % per tradefloat3.0risk_pct
Enable Longsbooltrueenable_longs
Enable Shortsbooltrueenable_shorts
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

9 stars

This indicator plots an anchored MIDAS support and resistance curve from launch-anchored volume-weighted price on the price chart. It adds two configurable volume-weighted standard-deviation, ATR, or hybrid bands and a topfinder or bottomfinder accelerated exh

Indicator v6 Mean reversionSupport & resistance Repaints
Updated 2 days ago · MIT GitHub repository of MIDAS 2.0 [WavesUnchained]

VWAP Trader NXi

by eddiebelaval
7 stars

VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous

Indicator v5 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Trader NXi
1 stars

This indicator screens daily price charts to identify potential parabolic snapback short and washout bounce long setups. It calculates price extension using moving averages, percentage gain lookbacks, and optional Bollinger Bands filters. Long signals require

Indicator v6 Mean reversionVolume
Updated 7 months ago · None stated GitHub repository of Parabolic Snapback & Washout

Volumetric Regression Heatmap

by woodstock-tokyo
1 stars

An overlay indicator that fits a regression channel over a base period, optionally resizing the period with volatility, and fills parallel levels above and below it with a colour gradient based on traded volume. Optional mean reversion signals appear when pric

Indicator v6 VolumeMean reversion Repaints
Updated 3 months ago · None stated GitHub repository of Volumetric Regression Heatmap

VWAP Volatility Bands

by Focal-QuantAI
1 stars

An indicator on the price chart that smooths a VWAP with a T3 moving average cascade and surrounds it with ATR-scaled volatility bands. The VWAP can reset each session, week or month. Optional bounce signals mark reactions from the outer bands in the direction

Indicator v6 Volatility & bandsVolume
Updated 6 months ago · None stated GitHub repository of VWAP Volatility Bands

The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers