How to Display VWAP Chart Label


Category:
0
0

Hello Pete!

Hope you are doing well! How do I take the VWAP indicator and create a chart label on the top left that says VWAP: “#”. I have provided a snippet for your reference. Thank you so much for your help!

Attachments:
Marked as spam
Posted by (Questions: 9, Answers: 4)
Asked on August 15, 2020 3:51 pm
669 views
1
Private answer

def vwapValue = reference VWAP()."VWAP";
AddLabel(yes, Concat("VWAP: ", vwapValue), Color.WHITE);

Marked as spam
Posted by (Questions: 37, Answers: 4125)
Answered on August 15, 2020 6:55 pm
0
Hello Pete, i trust you doing well! I was wondering if there's any chance of adding the upper and lower bands data to this code as well? I'm interested in the chart label showing the vwap, upper and lower band data. Didnt know if I had to make a new post since it related to this solution. thanks in advance!
( at February 1, 2025 7:45 am)
0

I'll show you how to change that to the upper band of VWAP study and that will show you how to also create one for the lower band:

def vwapValue = reference VWAP()."UpperBand";
AddLabel(yes, Concat("VWAP Upper: ", vwapValue), Color.WHITE);

Hint: All you need to do is change which of the three plots are being "referenced".

( at February 1, 2025 9:19 am)