Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume Weighted Average Price (VWAP) #32

Open
codeplea opened this issue Nov 16, 2018 · 4 comments
Open

Volume Weighted Average Price (VWAP) #32

codeplea opened this issue Nov 16, 2018 · 4 comments

Comments

@codeplea
Copy link
Member

Indicator to add: https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:vwap_intraday

@rdbuf
Copy link

rdbuf commented Apr 28, 2019

Isn't it the same thing as vwma, which is already present in the lib?

@codeplea
Copy link
Member Author

codeplea commented Apr 28, 2019

I believe that vwma uses the close, while vwap use the typical price (H+L+C)/3.

@rdbuf
Copy link

rdbuf commented Apr 28, 2019

Ah, I see, thanks

@recidive
Copy link

I managed to get this easily on node.js wrapper:

const { high, low, close, volume } = ohlcv
const hlcAverage = high.map((h, i) => (h + low[i] + close[i]) / 3)
const vwapResults = await vwma.indicator([[...hlcAverage], [...volume]], [14])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants