What is VWAP? The VWAP indicator explained
By Oalgo · Last reviewed
The VWAP indicator (Volume Weighted Average Price) is the average price since the day began, where each candle counts in proportion to its volume. It restarts at the start of every day and has no setting to choose.
How is VWAP calculated?
#- For each candle, take the typical price: (high + low + close) ÷ 3.
- Multiply the typical price by the candle's volume.
- Add those products up from the first candle of the day to the current candle. Add the volumes up the same way.
- VWAP = the sum of price × volume ÷ the sum of volume.
- At the first candle of the next day both sums start again from zero.
What does a worked example look like?
#| Candle | Typical price | Volume | VWAP so far |
|---|---|---|---|
| 1 | 100 | 10 | 100 |
| 2 | 104 | 10 | 102 |
| 3 | 101 | 60 | 101.25 |
| 4 | 106 | 20 | 102.2 |
After candle 4 the plain average of the four typical prices is 102.75. VWAP is 102.2, because candle 3 had the most volume and its price counts for more.
How do you read VWAP?
#| What you see | What it suggests |
|---|---|
| Price above VWAP | Price is above the volume-weighted average of the day so far. |
| Price below VWAP | Price is below the volume-weighted average of the day so far. |
| Price crosses VWAP | Price has moved from one side of the day's average to the other. |
| The first candles of a day | VWAP is close to the typical price of those few candles, so it moves a lot. It settles as the day goes on. |
VWAP adds up the whole day, so each new candle moves it less. Late in the day one more candle hardly changes it.
Which candle length does VWAP need?
#VWAP restarts on each new calendar day of the candle times. With candles of one day or longer, every candle is a day of its own, so VWAP is just that candle's typical price and adds nothing. It is made for shorter candles, such as 1 hour or 15 minutes. The timeframe page explains candle length.
How do people use VWAP in rules?
#- Allow entries only while price is above VWAP, or only while it is below it.
- Enter when price crosses back above VWAP after being below it, and exit when it crosses below.
- Enter when price is a set percentage below VWAP, aiming for a move back toward it.
- Compare it with a moving average. A moving average treats every candle the same and runs on across days. VWAP weights by volume and restarts each day.
What can VWAP not tell you?
#VWAP is an average of what has already happened that day. It does not say where price will go next, and a cross of VWAP is not a turning point by itself. Its value depends on where the day starts, so the same prices give a different line if the day boundary moves. Test any VWAP rule on past prices with a backtest, then forward test it.
In Oalgo you can tell Oalgo AI your VWAP rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
Read next
- Moving averages: SMA and EMA explainedA moving average smooths price into one line. Learn how the SMA and EMA are calculated, how they differ, and how to use them in your own rules.
- OBV (On-Balance Volume) explained: how to read itOBV adds a candle's volume when price closes up and subtracts it when price closes down. Learn how OBV is calculated, how to read it, and how to test rules.