Hello,
I am reading through with API Doc, and found in the section of pipeline, there is a chart for VWAP:
https://www.quantopian.com/assets/help_pipeline_vwap.svg
I found my calculation is different to the document. the documented result is: AAPL: 5.0, FB:5.5, MSFT:6.5.
While my calculation is:
AAPL: (100*1.5+300*3.0+150*4.5+100*6)/(100+300+150+100) = 3.6
FB: (250*2.0+200*3.5+400*5.0+200*6.5)/(250+200+400+200)=4.3
MSFT: (200*2.5+100*4.0+300*5.5+250*7.0)/(200+100+300+250)=5.0
So do I make the right calculation for VWAP? Or otherwise, how shall I make it to the result by official API Doc?
Best regards, Allan