VWAP Prox
- Indicatori
- Versione: 1.0
VWAP Pro: Anchored VWAP with Standard Deviation Bands for MT4
Overview
VWAP Pro plots a volume-weighted average price that you can anchor to the period that matters for your trading: every N hours (for example 4 hours), the day, the week, the month, or any custom date and time. Around the VWAP it draws up to five pairs of volume-weighted standard deviation bands, so you can see at a glance how stretched price is relative to the average price paid in the current session.
The indicator is built for intraday and swing traders who use VWAP as a fair-value reference, a mean-reversion level, or a dynamic support and resistance line.
Key Features
- Flexible VWAP anchoring
- Every N hours (default 4, fully adjustable)
- Daily, weekly, monthly
- Custom anchor date/time (a true anchored VWAP from any swing high, swing low or news event)
- Session start offset in hours, to match your broker's server time
- Optional Sunday week start for brokers that provide Sunday bars
- Up to 5 standard deviation band pairs
- Each band has its own multiplier and its own on/off switch
- Default multipliers: 1.28, 2.01, 2.51, 3.09, 4.01 (all editable)
- Separate colors for upper and lower bands
- Volume-weighted deviation, calculated cumulatively from the start of each session
- Previous-session VWAP: optionally display the closing VWAP of the previous session as a dotted reference line.
- Choice of price source: (High+Low)/2, (High+Low+Close)/3, (Open+High+Low+Close)/4, or Close.
- Clean, professional chart display
- Lines break between sessions, so each session looks like a fresh VWAP
- Option to show the current session only
- Right-side price labels for the VWAP and every plotted band
- Optional vertical lines marking the start of recent sessions
- Adjustable colors, line widths and font size
- Info panel: shows the current VWAP value, whether price is above or below it, the distance in standard deviations and in percent, the session start time, and the session volume.
- Alerts on bar close: popup, push notification and email alerts when a closed bar crosses the VWAP, or crosses the band of your choice (1 to 5). Alerts fire once per bar and never on the forming candle.
- Efficient calculation: only new and updated bars are recalculated, and a "max bars" setting limits the history processed, so the indicator stays light even on long histories and low timeframes.
How to Use
- Attach VWAP Pro to a chart on a timeframe lower than your anchor period (for example M5 to H1 for a 4-hour VWAP, M1 to H1 for a daily VWAP).
- Choose the anchor mode in the VWAP reset input.
- Switch on the bands you want to see and set their multipliers.
- Optionally enable alerts, the info panel and the session lines.
Common ways traders use VWAP and its bands:
- VWAP as an intraday fair-value reference: price above it suggests buyers are in control of the session, price below suggests sellers.
- Outer bands as stretch zones, where price may slow down, reverse, or confirm momentum, depending on your strategy.
- Anchoring to a custom date to measure the average price paid since a swing point or an important event.
- Multi-anchor analysis: attach several copies with different anchors (4-hour, daily, weekly) to see where the levels cluster.
Input Parameters
Anchoring
- VWAP reset: Every N hours / Daily / Weekly / Monthly / Custom date
- N hours: length of the session when using "Every N hours"
- Session start offset: shifts the session start (hours, server time)
- Week starts on Sunday: on/off
- Anchor date/time: used in Custom mode
Calculation
- Price source
- Max bars to calculate (0 = all)
Bands
- Multiplier and on/off switch for each of the 5 bands
- Show previous-session VWAP
Style
- Colors for the VWAP, each upper and lower band, and the previous VWAP
- VWAP and band line widths
- Break lines between sessions
- Show current session only
Labels and Panel
- Right-side price labels, label distance, font size
- Info panel on/off, corner and text color
- Session-start vertical lines, maximum number of lines and color
Alerts
- Alert on VWAP cross
- Alert on band cross (0 = off, 1 to 5)
- Popup, push notification, email
Important Notes
- Bands per indicator copy: MetaTrader 4 limits an indicator to 8 buffers, so each copy of VWAP Pro plots the VWAP plus up to 3 band pairs, which are the first 3 bands you switch on. All 5 bands are fully configurable. To display more than 3 at once, attach a second copy of the indicator with the same anchor settings and enable the remaining bands there. Both copies work independently without interfering with each other.
- Volume: MT4 provides tick volume, not real exchange volume. VWAP Pro therefore uses tick volume for weighting, which is the standard approach for Forex and CFD symbols. Results on instruments with real volume may differ from platforms that use exchange volume.
- Timeframe: the chart timeframe should be lower than the anchor period. If the chart timeframe is equal to or higher than the session length, each session contains a single bar and the deviation is zero. The indicator warns you in the Experts log.
- Broker time: the sessions follow your broker's server time. Use the session start offset to align the day, week or custom sessions with the market session you trade.
- This indicator is an analysis tool and does not open or close trades. Past behavior of price relative to VWAP does not guarantee future results. Trade at your own risk.
Support
If you have questions, suggestions or feature requests, please leave a comment on the product page or contact me through the MQL5 private messages. Updates and improvements are planned based on user feedback.
