rarya 7 posts msg #57732  Ignore rarya 
12/7/2007 8:39:48 AM
Trying to code this up but without any success.
Here is the description from SFO magizine
The volume weighted moving averages (VWMA) or Buff averages is calculated by weighting each time frame’s closing price with the time frame’s volume compared to the total volume during the range:
VWMA = sum {closing price (I) * [volume (I)/(total range)]}, where I = given day’s action.
This is an example of how to calculate a twoday moving average, using both the SMA and VWMA for a security trading at $10 a share with 100,000 shares changing hands on the first day, and at $12 a share with 300,000 shares changing hands on the second day. The SMA calculation is day one’s price plus day two’s price, divided by the number of days, or (10+12) ÷ 2, which equals 11. The VWMA calculation would be day one’s price, $10, multiplied by day one’s volume, which is expressed as a fraction of the total range (100,000/400,000 = 1/4), plus day two’s price, $12, multiplied by day two’s volume of the total range expressed as a fraction (300,000/400,000 = 3/4), which equals 11.5 (2.5 day one + 9 day two).
VWMACD = Uses Appel's traditional MACD formula and substitutes the EMA's with VWMA's for the first two computations.
VPCI = VPC x VPR x VM
The VPCI (volume price confirmation indicator) involves three calculations derived from two inputs:
Input 1 = longterm timeframe (28 periods standard)
Input 2 = shortterm timeframe (seveb periods standard)
Calculation 1, Volume Price Confirmation/Contradiction:
Where VPC is the difference between a longterm volumeweighted moving average (VWMA) and a simple moving average (SMA) of the same length. This difference, when positive, is volumeprice confirmation (VPC+); when negative, is volumeprice contradiction (VPC).
Calculation 2, Volume Price Ratio:
The volume price ratio (VPR) is calculated by dividing shortterm VWMA a by the shortterm SMA.
Calculation 3, Volume Multiplier:
The volume multiplier (VM) is the shortterm volume average divided by the longterm volume average.
VPCI = VPC x VPR x VM
Thanks

nikoschopen 2,824 posts msg #57739  Ignore nikoschopen 
12/7/2007 1:17:46 PM
A passing aberration in the guise of déja vu? I swear this question came up in the past, which you can read in full HERE
As for VWMA, Stockfetcher already has one for use.
At any rate, here's the modified code from the other thread:
Courtesy of lockwhiz, the entire article (PDF) can be read HERE.

nikoschopen 2,824 posts msg #57740  Ignore nikoschopen 
12/7/2007 5:43:35 PM
I ain't too sure I got the Bollinger thang correct but it seems to look okay. Any suggestion would be welcome. BTW, can somebody grill the SF developers to allow us the use of indicators like Bollinger Bands on not just prices but on other indicators as well?

rarya 7 posts msg #57743  Ignore rarya 
12/7/2007 5:52:24 PM
nikoschopen
Thanks for the help, I guess that is why they made a search button :)

chetron 2,817 posts msg #57785  Ignore chetron 
12/8/2007 6:00:57 PM
i noticed that the chart lines up better with the CRL example, if you add the line "display weekly chart"

mktmole 325 posts msg #117181  Ignore mktmole 
12/3/2013 11:27:48 PM
Any recent ideas on recoding this for the joebasic subscriber are much appreciated. tks mm

johnpaulca 11,738 posts msg #117212  Ignore johnpaulca modified 
12/4/2013 5:03:54 PM
zzzzzzzzz

Kevin_in_GA 4,599 posts msg #117216  Ignore Kevin_in_GA 
12/4/2013 7:29:29 PM
Just remove the draw commands to fix. I upped the price and volume constraints.

mktmole 325 posts msg #117227  Ignore mktmole 
12/4/2013 11:13:59 PM
tks kindly Kevin

Rock Sexton 109 posts msg #117324  Ignore Rock Sexton modified 
12/10/2013 9:30:58 PM
Interesting filter that Kevin tweaked. So far in my backtesting of it, it's turning up some divergence trades that I like.
I don't trade priceonly divergences btw. I concentrate on how far price has moved (i.e. deviations) from important volume points of control. Then I use the divergence setup along with volume confirmation to trade back in the direction of an identified VPOC.
