Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers
RSS

Navigation


Quick Search
»
Advanced Search »


VWAP (Volume Weighted Average Price)

RSS

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 ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki. Some of the icons created by FamFamFam.