Alan Ross

Alan Ross Forex

Free Forex Indicators, MetaTrader Tools and Honest Trading Guides

Learn Forex

VWAP Indicator for MT4: A Weekly Reset Beat the Daily One on 3 of 4 Charts, and the Only Rule That Passed Used Volume on Gold M15

Key takeaways

  • MT4 and MT5 do not come with a VWAP. You install one as a custom indicator, and its two settings that matter are when it resets and how wide the bands are. I tested 4 resets and 5 band widths on gold and EURUSD, M5 and M15: 104 setting and rule pairs, spread included.
  • A weekly reset had the best median result on 3 of 4 charts. On gold M15: +$0.38 an ounce a trade, against -$0.15 for the usual daily reset at 00:00 UTC.
  • Resetting at the COMEX open, 22:00 UTC, was the worst choice on both gold charts. That is close to the server midnight of many MT4 brokers.
  • No band width won everywhere. 2 standard deviations had the best median on gold M15 (+$1.07 an ounce); on EURUSD M15 only 2.5 and 3 were positive.
  • The one rule that passed every check used volume, not the VWAP line: a volume spike on gold M15, held 3 hours, +$3.08 an ounce a trade. This guide shows how to set it up and trade it.

“vwap forex indicator mt4” is one of the most suggested searches around MT4 indicators, and most of the pages that answer it are download links. Before you install anything, here is what the settings did on real bars. The full rule by rule test is in my VWAP and volume test, and the comparison with a plain moving average is in VWAP vs moving average.

Does MT4 have a VWAP indicator?

MetaTrader chart with a custom VWAP indicator

No. Neither MT4 nor MT5 has VWAP in its built-in list, unlike TradingView. You add it as a custom indicator:

  1. Download a free VWAP indicator from the MQL5 Code Base (search “VWAP” and pick one with source code, a .mq4 file for MT4 or .mq5 for MT5).
  2. In MT4: File, Open Data Folder, MQL4, Indicators. Copy the file there.
  3. Back in MT4, right-click Indicators in the Navigator window and choose Refresh. The VWAP appears under Indicators.
  4. Drag it onto the chart. The inputs tab is where the reset and the bands live; the names differ between versions, but look for something like “period”, “anchor” or “session” and “deviation” or “band”.

One more thing to know before you trust it. On a forex pair, the volume MT4 feeds into the VWAP is tick volume: the number of price changes your broker sent, not money traded. On gold CFDs it is tick volume too. In my test gold used real COMEX futures volume, which a CFD only approximates. If you are new to custom indicators, my first MT4 chart setup guide covers templates and the Navigator.

Which VWAP reset worked best?

Setting up the VWAP reset and bands in the platform
ResetGold M5Gold M15EURUSD M5EURUSD M15
Daily, 00:00 UTC-$0.38-$0.15-0.80-0.91
Daily, 22:00 UTC (COMEX open)-$0.60-$0.44-0.76-0.67
Daily, 07:00 UTC (London)+$0.15-$0.19-0.88-0.50
Weekly+$0.27+$0.38-0.95-0.11

Median result per trade after cost across the cross, pullback and five band fades for each reset: dollars per ounce on gold, pips on EURUSD. Pairs with fewer than 30 trades left out.

The weekly VWAP was first on gold M5, gold M15 and EURUSD M15, and last on EURUSD M5. A daily line starts from a handful of bars every morning and gets crossed over and over while it settles. A weekly line has days of history behind it by midweek, so it moves less and gives fewer signals. It traded about half as often: 72 crosses on gold M15 against 106 for the 00:00 reset.

The 22:00 UTC reset was the worst on both gold charts. On many MT4 brokers the server clock runs at GMT+2 or GMT+3, so their “daily” VWAP restarts at 21:00 or 22:00 UTC, right as the thinnest hours of gold begin. If your indicator only offers “daily”, check which clock it uses.

None of this makes the VWAP line a strategy. Of all 104 setting and rule pairs, 31 made money after cost and 14 made money in both halves, mostly fades on gold. Picked from 104, a best cell is likely to fade on new data, as my optimized vs default settings test showed.

What band width should I use?

BandsGold M5Gold M15EURUSD M5EURUSD M15
1.0σ+$0.05-$0.49-1.00-0.91
1.5σ+$0.15-$0.02-0.69-0.85
2.0σ-$0.31+$1.07-0.72-0.94
2.5σ+$0.26-$3.20-0.41+0.89
3.0σ+$2.13too few-0.40+1.03

Band fade: close outside the band, target VWAP, stop 1 ATR. Median across the four resets after cost. Gold M5 at 3.0σ is a single reset with 39 trades.

On EURUSD wider bands lost less, because they fire less and each trade has further to run back to VWAP: on M15 a 3σ fade averaged 58 trades in 12 weeks against 331 at 1σ. On gold there is no pattern at all: 2σ was best on M15 and worst on M5. If you use bands, 2σ is the common default and it was the only setting that did well on gold M15, but I would not pay for a “VWAP band strategy” on the strength of these numbers.

How do I trade the volume spike on gold M15?

This is the one rule out of 28 that made money after cost, made money in both halves and beat 300 random runs. It does not need VWAP at all, only the volume bars.

  1. Open gold on M15 and add Insert, Indicators, Volumes, Volumes, plus Average True Range with period 14.
  2. Find the spike on a closed bar. Its volume must be more than twice the typical volume of the last 50 bars. I used the median; by eye, a bar clearly twice as tall as most bars of the last 12 hours is the same idea.
  3. Check the body. The distance from open to close must be more than half the ATR. A tall volume bar with a small body, a doji, is skipped.
  4. Trade in the bar’s direction at its close. Green spike: buy. Red spike: sell.
  5. Close after 12 bars, 3 hours, whatever the result. One trade at a time.

In the test this made +$3.08 an ounce a trade after cost on 136 trades, about 13 a week, won 53.7%, and its worst run of losses was $118.60 an ounce. Example: a green spike closes at 4,600.00 with ATR 8.00. You buy at 4,600.00 and close at whatever price is there 3 hours later.

Three warnings. The test exit had no stop, so the 3-hour close was the only limit; if you add one, you are trading a rule I did not test. Almost all of the profit came from buys (+$7.17 a trade, sells -$0.35). Buy spikes made +$2.47 a trade in the first half, when gold fell from $4,351 to $4,059, and +$9.75 in the second, when it rose to $4,675, so most of the money came from the rising weeks. And on M5 the same rule lost. 0.01 lot of gold is 1 ounce, so size it on the $118.60 drawdown, not on the average; the position sizing table helps.

When is gold volume high enough to matter?

Spikes are measured against the last 50 bars, so a spike at 03:00 UTC is a spike against a quiet night, and a spike at 13:30 UTC is a spike against the busiest hour. In the data the median 5-minute bar traded 1,045 contracts at 13:00 UTC and 127 at 20:00. My gold scalping session by session test and the gold MT4 settings test show how much the hour changes gold results in general.

Before you trade it with money, run it on demo or in the MT5 Strategy Tester with your broker’s data, since your volume is not the exchange volume I used. My MT5 backtesting guide shows how.

Frequently asked questions

Is there a VWAP indicator in MT4?

Not built in. You download a custom VWAP from the MQL5 Code Base, copy it to File, Open Data Folder, MQL4, Indicators, and refresh the Navigator. MT5 is the same, with the MQL5 folder.

What is the best VWAP setting for forex?

In my test a weekly reset had the best median result on 3 of 4 charts, and on gold M15 the 2 standard deviation bands did best. On EURUSD every reset still lost on average after a 1-pip spread.

When does VWAP reset in MT4?

It depends on the indicator. Most daily versions reset at the broker’s server midnight, which for many brokers is 21:00 or 22:00 UTC. In my test the 22:00 UTC reset was the worst of four on gold.

Is MT4 volume real volume?

No. MT4 shows tick volume, the number of price changes your broker sent in each bar. It tracks activity, but it is not traded volume, and it differs between brokers.

Which volume strategy works on gold?

A volume spike on gold M15: volume more than twice the median of the last 50 bars, a body over half an ATR, trade in the bar’s direction and close after 3 hours. +$3.08 an ounce a trade after cost on 136 trades, mostly from buys.

Want a clean indicator to install right now?

It is my own enhanced DeMARK Trend Line indicator for MetaTrader 4 and 5. Non repaint, clean, and free.

Download the Free DeMARK Indicator

Written by Alan Ross

Forex trader and MetaTrader indicator developer. I build and test MT4 and MT5 tools, then write the honest version of how they actually work. More about me.

Last reviewed October 2026
Alan Ross
Alan Ross

Forex educator and indicator developer. I build and trade my own MetaTrader tools, and share the ones that genuinely help.

Leave a comment

Your email address will not be published. Comments are reviewed before they appear.