Volume Weighted Moving Average (VWMA)

Volume Weighted Moving Average (VWMA)

I know the Volume Weighted Moving Average indicator is available in PRT as an indicator but the code is not available for strategy building so I created the code.

Formula: 3-Day VWMA = (C1*V1 + C2*V2 + C3*V3) / (V1+ V2+ V3)

Where C is close and V is volume

Basic strategy as from “https://www.tradingsetupsreview.com/volume-weighted-moving-average-vwma/

To fully make use of the Volume Weighted Moving Average (VWMA), compare it with a SMA that does not include volume.

The SMA is a benchmark. This means that you should choose the same look-back period for both the SMA and the VWMA.  The only difference between the two moving averages is volume weighting.

What matters here is the gap between the VWMA and the SMA. Their difference shows the effect of volume weighting.

Generally, volume should increase along with the trend and decrease against it. Hence, generally, if the VWMA is above the SMA, it means that volume has been higher on up days. When the VWMA is below the SMA, it shows that down days had higher volume.

The Volume Weighted Moving Average has the ability to help discover emerging trends, identify existing ones and signal the end of a move.

What it does is to incorporate not only the last x periods of price into its calculation but also the average volume during those x periods. That means when the volume is stronger, the VWMA will follow price more closely, and when volume falls off, it will mimic a simple moving average. The VWMA does not make a difference between buying and selling volume, only the strength of volume itself, so it will simply get closer to the close of the day when volume increased on that day, no matter whether it is a bearish or a bullish close.

Important is – if the VWMA is above the SMA, we are moving in an uptrend, and when it is below, we do have bearish implications. Or even simpler, as long as the VWMA is between price and the SMA, we are trending in that direction.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Daniele Maddaluno If you need to use it in PRT v11 take a look at this topic: https://www.prorealcode.com/top...
Barrabas15 Apparently, according to the attached data, there is an error in the indicator code. Attach...
Barrabas15 The files are at the end of the following link: https://www.prorealcode.com/topic/time-seg...
robertogozzi Thank you Barrabas15, the correct code is at https://www.prorealcode.com/topic/time-segmente...
willi Ich habe meinen Fehler gefunden: Das lambda war fĂĽr meine eingestellte Zeiteinheit zu groĂź g...
Fabian Hi Nicolas, do you plan to release this indicator in version 10.3 as well or is this not ...
Nicolas No because it needs arrays! :)
Nicolas esta possible
bolsatonimora2 Hola Nicolas, perdona la molestia, pero podrias codificar el screener para rupturas de sopor...
Nicolas Utilice los foros para solicitar una codificaciĂłn personalizada.
Demon Bonjour, je n'ai pas téléchargé le code mais je l'ai lu et comme je ne comprenais pas la con...
Vivien René Tout a fait demon, cela depend de ce que tu recherches personnellement je ne souhaite enlev...
clody Good morning Rene'. Thanks a lot d=for the 3 screener you made regarding Breack Out (very us...
jaginho Bonjour Vivien, je n'arrive pas Ă  comprendre ce screener... En tout cas merci pour tes contr...
samsampop Superb, merci!
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
larouedegann
8 months ago
VWMA-SMA Map
v10.3
VWMA-SMA Map
0
Indicators
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
Kris75 very interesting; thanks !
Rory Dryden Thank you. Experimenting with it now.
Jezza34 Thank you for that amazing program ! :-)
superprof bonsoir comment faire les tests In Sample et Out of Sample.? je ne comprend pas le sens
Brisvegas I would be surprised if this is anything but datamining TBH but i will have a play and see w...
19Tom85 Good evening, I am new here and quite interested in Volume Price analysis. may I ask you if ...
angelpero Me alegra ver que has vuelto a programar en Proreal, me gustarĂ­a poder acceder a tu blog, si...
Fulminant Merci pour tout ce travail.
Vonasi
10 months ago
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
swedshare You got some potential here. A couple of things I think about: 1, The opening hours in this...
phoentzs Ich habe hier mit Spread 2 gerechnet, also etwa dem Mittelwert zwischen Tag und Nacht. Das G...
phoentzs Hab festgestellt, das US500 fast noch besser funktioniert als der Dax. Was aber auch daran l...
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Maxime Baudin Very useful! Thanks Mat, and Happy New Year

Top