Periodic VWAP Bands
Info
The Periodic VWAP Bands is a Indicator for MetaTrader 5 that periodic vwap bands plots the volume-weighted average price (vwap) of the current day, week or month on the main chart, with two pairs of standard-deviation bands around it. VWAP is the average price weighted by how much trading happened at each level, so it is often used as the "fair value" of the session.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Periodic VWAP Bands
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
Periodic VWAP Bands plots the volume-weighted average price (VWAP) of the current day, week or month on the main chart, with two pairs of standard-deviation bands around it.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Anchored VWAP with Draggable Anchor Point (2026 Update) - another powerful indicator for MetaTrader 5 traders.
Periodic VWAP Bands plots the volume-weighted average price (VWAP) of the current day, week or month on the main chart, with two pairs of standard-deviation bands around it. VWAP is the average price weighted by how much trading happened at each level, so it is often used as the "fair value" of the session. The bands show how stretched price is from that value.Also recommended: Session VWAP with Standard Deviation Bands - similar indicator with strong performance on MetaTrader 5.
How it works
Each bar's typical price (High + Low + Close) / 3 is weighted by its tick volume (or real volume, if you choose it and the symbol provides it; otherwise it falls back to tick volume).
VWAP = sum(typical price x volume) / sum(volume) since the start of the period.
The bands are VWAP +/- k x the volume-weighted standard deviation of the typical price over the same period (defaults k = 1.0 and 2.0).
Everything resets at the start of each Day, Week (Sunday, server time) or Month. An optional session start hour moves the reset, for example to 08:00 server time for a London-session VWAP.
Each period is drawn separately: there is a gap at each reset, so one period's lines never join the next.
An optional dotted line carries the previous period's final VWAP across the current period, a level that price often reacts to.
Panel
Reset period (Daily / Weekly / Monthly, plus the session hour if set).
Current VWAP.
Distance of price from VWAP in price and in points (for example on XAUUSD with 3-digit pricing, 17.010 = 17010 points).
Sigma: the distance in band units, for example +1.11 sigma, with the size of one standard deviation.
Zone: where price is, for example "VWAP to +1.0 band", "Between +1.0 and +2.0" or "Below -2.0 band".
Previous period VWAP and the number of bars in the current period.
Ideas for use
Use VWAP as a reference for the day's fair value: intraday buyers are in profit above it, sellers below it.
Treat moves to the +/-2 sigma bands as stretched; watch for mean reversion, or for a breakout if price keeps closing outside.
Use the weekly or monthly VWAP on H1/H4 for swing context, and the daily VWAP on M5-M30 for intraday work.
Watch the previous period's VWAP as a support/resistance reference.
Alerts
Optional alerts when a closed bar crosses VWAP or closes beyond an outer band (one alert per bar, no alerts across a reset).
Notes
Works on any symbol and timeframe below the reset period (for example M1-H4 for the daily VWAP). Forex and CFD symbols usually have only tick volume, which is the default.
Calculation is incremental: each new bar only extends the running sums of the bar before it, so it stays light even on long histories.
Information only. It does not open, close or modify trades, and it does not predict price direction.
Inputs
Reset period (Day): Day, Week (starts Sunday, server time) or Month
Session start hour offset (0): server hour (0-23) at which each period starts; 0 = midnight
Volume used as weight (Tick volume): tick volume, or real volume (falls back to tick volume if the symbol has none)
Inner band multiplier (1.0): standard deviations for the inner bands
Outer band multiplier (2.0): standard deviations for the outer bands
Show previous period's final VWAP (true): dotted line of the previous period's last VWAP
Show info panel (true): shows the panel on the chart
Panel corner (Left upper): chart corner for the panel
Panel text colour (WhiteSmoke): colour of the panel text
Panel background colour (Dark grey): background of the panel
Panel font size (9): font size of the panel
Alert when a closed bar crosses VWAP (false): pop-up alert on a VWAP cross
Alert when a closed bar crosses an outer band (false): pop-up alert on a close beyond the outer band
You may also like: ORB Box + VWAP Stats: Opening Range, Targets, and Historical Break Analysis - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 12
#property indicator_plots 6
#property indicator_label1 "VWAP"
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrOrange
#property indicator_style1 STYLE_SOLID
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.