How would you manually remake the vwap function in the fundamentals?

I cant seem to find a way to make a match for a 1 candle vwap ma for testing reasons.

If you are asking how to reference the VWAP indicator, it is: reference VWAP(). Otherwise the use of VWAP() without the word reference is the fundamental price of VWAP, just as with other price types, like, close, high, low, etc...
 
Last edited:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

If you are asking how to reference the VWAP indicator, it is: reference VWAP(). Otherwise the use of VWAP() without the word reference is the fundamental price of VWAP, just as with other price types, like, close, high, low, etc...
no im trying to back door the VWAP indicator on to spx with $TVOLSPC and need to remake the fundamental price of vwap() using high low close and cant seem to get it to work
 
By all accounts, it should be hlc3, if you're referring to the fundamental vwap rather than the built-in vwap() study. Every single source I could find describes that part of the formula as typical price * volume, with typical price being (high + low + close) / 3. On the other hand, TOS's own built-in vwap() study uses the vwap fundamental for typical price, as in vwap * volume rather than hlc3 * volume, but the vwap fundamental doesn't line up with hlc3. Its close, but its not the same. I honestly don't know what TOS's vwap fundamental is supposed to represent. The use of hlc3 appears to be the universal standard everywhere except TOS... I think I also remember some threads about TOS's vwap study not perfectly lining up with vwap from other platforms, and I am now of the opinion is that TOS's version is incorrect.
 
By all accounts, it should be hlc3, if you're referring to the fundamental vwap rather than the built-in vwap() study. Every single source I could find describes that part of the formula as typical price * volume, with typical price being (high + low + close) / 3. On the other hand, TOS's own built-in vwap() study uses the vwap fundamental for typical price, as in vwap * volume rather than hlc3 * volume, but the vwap fundamental doesn't line up with hlc3. Its close, but its not the same. I honestly don't know what TOS's vwap fundamental is supposed to represent. The use of hlc3 appears to be the universal standard everywhere except TOS... I think I also remember some threads about TOS's vwap study not perfectly lining up with vwap from other platforms, and I am now of the opinion is that TOS's version is incorrect.
Did anyone found out how tos calculates vwap? I tried hlc/3 but it doesnt match to tos's vwap. I am breaking my head now because no matter what I do, I am not able to match to tos's vwap.
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
254 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top