VWP (Volume Weighted Price)
#1
I would like to know how BudFox is calculating VWP.

The Documentation for BudFox states that its output is JSON objects such as:


Code:
{"start":"2015-02-02T23:08:00.000Z","open":238.21,"high":239.35,"low":238.21,"close":238.66,"vwp":8743.778447997309,"volume":203.6969347,"trades":56}


where I assume "vwp" is Volume Weighted Price.  However, it seems to me that the actual values of VWP disagrees with other data (specifically price and volume) from that same record of trades.  

Given that

[Image: vwap.gif]


I presume then that VWP = VWAP * Total Share Bought = VWAP * Total Volume.

So, from the data from the sample record above, VMP = 8743.79 and volume = 203.70 which implies VWAP = 8743.79/203.70 = 42.92
But 42.92 is outside the high..low for that trading period (239.35 .. 238.21).

What am I missing?

Thanks in advance,
Brenton

BTW.  I checked the code [gekko/core/budfox/candleCreator.js: 149 and 152] and it does appear to be creating a VWAP correctly.  Perhaps the data is bad in the example?
  Reply


Messages In This Thread
VWP (Volume Weighted Price) - by bpc555 - 01-18-2018, 07:13 AM
RE: VWP (Volume Weighted Price) - by askmike - 01-19-2018, 05:20 PM

Forum Jump:


Users browsing this thread: