VWAP (Volume Weighted Average Price)

Modified on 2012/04/26 13:01 by Eugene — Categorized as: Community Indicators

Volume Weighted Average Price (VWAP): Indicator Documentation

Syntax

DataSeries VWAP( Bars )

Parameter Description

Bars  Bars object to be used in the indicator's calculation

Description

According to Investopedia, Volume Weighted Average Price (VWAP) is "calculated by adding up the dollars traded for every transaction (price multiplied by number of shares traded) and then dividing by the total shares traded for the day. The theory is that if the price of a buy trade is lower than the VWAP, it is a good trade. The opposite is true if the price is higher than the VWAP."

Note: VWAP can be used on intraday data only.

References:


Example

This example illustrates how to plot the VWAP:


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Indicators;

namespace WealthLab.Strategies { public class VWAP_demo : WealthScript { protected override void Execute() { VWAP vwap = VWAP.Series( Bars ); PlotSeries( PricePane, vwap, Color.Green, LineStyle.Solid, 2 ); } } }