This document contains code to calculate the volume weighted average price (VWAP) over a period of time. It defines the period as 10 days, sums the volume over that period, then calculates the VWAP by summing the average of the high and low prices multiplied by volume over the period and dividing it by the total volume. The VWAP is then plotted on a chart with an orange dashed line.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
102 views1 page
Volume Weight Average Price Afl
This document contains code to calculate the volume weighted average price (VWAP) over a period of time. It defines the period as 10 days, sums the volume over that period, then calculates the VWAP by summing the average of the high and low prices multiplied by volume over the period and dividing it by the total volume. The VWAP is then plotted on a chart with an orange dashed line.