# VWAP Bands for MT4

#### sangnakhon

Can somebody please make bands for this indicator ? It's VWAP (volume weight average price).
So it'll become VWAP Bands. Please put standard deviation 1.0, 2.0 & 2.5 for it.
So It'll look like Bollinger Bands. But I think it'll be better than Bollinger Bands.

I don't know how to calculate VWAP , but I think when you see the code in the indicator
I attached you'll know it.
I also upload Bollinger Bands indicator that has 3 standard deviation in case it might help you make it easier.

#### Attachments

• vwap_close 20.mq4
2 KB · Views: 937
• AllBollingerBands_v2.0 600+.mq4
28 KB · Views: 368

#### sangnakhon

VWAP calculation
There are five steps involved in the VWAP calculation.
First, compute the typical price for the intraday period. This is the average of the high, low and close {(H+L+C)/3)}.
Second, multiply the typical price by the period's volume.
Third, create a running total of these values. This is also known as a cumulative total.
Fourth, create a running total of volume (cumulative volume).
Fifth, divide the running total of price-volume by the running total of volume.

Cumulative(Volume x Typical Price)/Cumulative(Volume)

#### sangnakhon

Pls. delete this request. I find the solution already.
Thanks anyway for those who want to help.

#### Enivid

Staff member
OK, the attached indicator is VWAP bands. In addition to three pairs of standard deviation lines, it supports price type selection. The bands are optional and will disappear if relevant input parameter is set to 0. Looks nice:

Let me know if it works for you.

#### Attachments

• VWAP Bands.mq4
5.6 KB · Views: 1,115
• 👍
friday13 and sangnakhon

#### sangnakhon

Thanks.

hello thank you very mutch if you can stategies trading whith this best indicator kinds rigards

#### Lenise

##### Newbie
OK, the attached indicator is VWAP bands. In addition to three pairs of standard deviation lines, it supports price type selection. The bands are optional and will disappear if relevant input parameter is set to 0. Looks nice:
View attachment 8127

Let me know if it works for you.
Hello! I put it on my MT4 platform but nothing appears there. Is the file correct?

#### Enivid

Staff member
The file is definitely correct. What do you mean exactly by "I put it on my MT4 platform" and by "nothing appears there"?

#### Gianluca Zeni

##### Newbie
Same to me! It doesn't show any of the bands.
any suggestion?

#### Enivid

Staff member
Same to me! It doesn't show any of the bands.
any suggestion?

Is there any output in the Experts tab of the terminal when you try to attach this indicator?

#### Gianluca Zeni

##### Newbie
Now it is working. I just removed the platform, deleted all folders and installed again.

Ciao Gianluca, purtroppo a me continua a non funzionare anche dopo aver rimosso ed installato nuovamente. Come hai fatto?

#### Enivid

Staff member
What happens when you try to attach the indicator to the chart? What is the output in the Experts tab ("Consiglieri" se la tua piattaforma è in italiano)?

#### acushnir

Same to me! It doesn't show any of the bands.
any suggestion?

Here is a fixed version of the indicator.
I hope it would be nice

#### Attachments

• VWAP Bands.mq4
11.7 KB · Views: 625
• 👍
friday13 and Enivid

#### MOABC1

OK, the attached indicator is VWAP bands. In addition to three pairs of standard deviation lines, it supports price type selection. The bands are optional and will disappear if relevant input parameter is set to 0. Looks nice:
View attachment 8127

Let me know if it works for you.

I'm try to be respectful and honest at the same time. THIS IS RUBBISH! It's not VWAP with SD. VWAP is not calculate using certain period (n) or candles.

It's only use volumes of similar day, e.g. Friday is only use Friday's volumes. If you put n=20 periods, for example, in early candles of Friday's chart, it'll also use Thursday's volume in the calculation. That's not a VWAP with SD.

• 👍

I'm try to be respectful and honest at the same time. THIS IS RUBBISH! It's not VWAP with SD. VWAP is not calculate using certain period (n) or candles.

It's only use volumes of similar day, e.g. Friday is only use Friday's volumes. If you put n=20 periods, for example, in early candles of Friday's chart, it'll also use Thursday's volume in the calculation. That's not a VWAP with SD.
That is right. The screenshot below is probably what you and I are looking for. VWAP with SD which is reset after a day/a week/ a month is useful for analysis on institution buy or sell programs. It would take some skill to code this though, not sure if the coders here can do it.

Last edited by a moderator:

Replies
0
Views
560
Replies
0
Views
2K
Replies
0
Views
1K
Replies
8
Views
2K
Replies
1
Views
1K