VWAP with percentage adjustment
Forums › ProRealTime English forum › ProBuilder support › VWAP with percentage adjustment
- This topic has 6 replies, 3 voices, and was last updated 3 years ago by Nicolas.
Tagged: bands, vwap, vwap bands
-
-
01/21/2021 at 2:06 AM #158752
HI There,
Is there an intraday VWAP indicator with % adjustment. Basically, it will have the main vwap and 2 additional vwap bands, 1 at above and 1 at below as per attached image.
Wayne
01/21/2021 at 10:15 AM #158794Please find below the VWAP code with bands in percentage, change the percentage setting at first line:
12345678910111213percent = 1if day<>day[1] thend=0elsed=d+1if volume >0 thenVWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)endifendifRETURN VWAP as "VWAP", vwap*(1+percent/100) as "up", vwap*(1-percent/100) as "down"01/29/2021 at 9:44 AM #159770Hello Nicolas,
Thank you for the code.
I have tested the above code in ProRealTime but I’ve found the candles “Circled in orange” are not align to the main vwap, 2% vwap and -2% vwap.
I have attached image comparison PRT to two other platforms that may give you an insight to what I’m talking about.
Many Thanks,
Wayne01/29/2021 at 10:45 AM #159776What you get out depends on what you put in! The data feeding your two other platforms will be different to the PRT data feed. The output from any indicator when applied to different data will be different!
I imagine if you check the candles and the volume for each candle on each platform you will see that they are different.
01/29/2021 at 11:12 AM #159783Hi Vonasi, thank you for the feedback.
The codes Nicolas provided I think it’s based on intraday vwap with % outter bands. Would there be different if the code was based on daily vwap with % outter bands?
I think I may gotten it mixed up with intraday vwap vs daily vwap. Please see the attached image. I have added another indicator (daily vwap, orange line), it seems to be reflect to the other two platform. Could this be the issue here?
01/29/2021 at 11:26 AM #15978701/29/2021 at 11:39 AM #159789 -
AuthorPosts
Find exclusive trading pro-tools on