claypuzzle

Anchored VWAP Click

It calculates AVWAP set from a mouse click on a chart instead of having to edit a popup box, manually transferring date and time from the chart.
It's the Oct 2021 sample script from Tradingview to demonstrate their new chart interactive capabilities of Pine script.
www.tradingview.com/...w-interactive-27147/
I take no credit for this, just noticed it wasn't in the Public Library.
This ability to accept OnMouse positional data from the chart, into an indicator has been needed in TV for a long time.
Glad to see they continue to grow the capabilities.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?