Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

custom indicators Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
papabill
Posted : Thursday, April 14, 2005 5:35:23 PM
Registered User
Joined: 2/14/2005
Posts: 2
Is there a way to calculate a volume-weighted moving averages in the custom indicators. I read about it in the book bolinger on bolinger bands
thanks papabill
Doug_H
Posted : Thursday, April 14, 2005 5:48:50 PM


Worden Trainer

Joined: 10/1/2004
Posts: 4,308
Well, I'm not exactly sure what calculation you're looking for. If you could elaborate a little, we could probably help.

((C*V)+(C1*V1)+(C2*V2))/3 would be at least one type of a three day volume weighted moving average. Of course, you could extend it out for as many days as you wanted.

- Doug
Teaching Online!
bustermu
Posted : Friday, April 15, 2005 5:16:47 AM
Registered User
Joined: 1/1/2005
Posts: 2,645
QUOTE (Doug_H)
Well, I'm not exactly sure what calculation you're looking for. If you could elaborate a little, we could probably help.

((C*V)+(C1*V1)+(C2*V2))/3 would be at least one type of a three day volume weighted moving average. Of course, you could extend it out for as many days as you wanted.


Your PCF should be:

3*(V0*C0+V1*C1+V2*C2)/AVGV3

I believe Volume Weighted Averages have been described in another post.

The answer to papabill's question is yes, but it has to be done with another Custom Indicator, CI, and both CI's have to be forced to the same scale. This "forced scaling" of CI's has been discussed in another post.

Thanks,
Jim Murphy
Craig_S
Posted : Friday, April 15, 2005 7:08:22 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
I found a description of Volume Weighted Average:

QUOTE
VWAP is calculated by adding up the dollars traded for every transaction (price times shares traded) and then dividing by the total shares traded for the day.


Does this sound like what you are looking for?

If so, and if I understand the definition, then you would need to create the average based on each tick. There is no real practical way to do this in the program.

The result would give you a price level weighted based on the price levels where the largest trades of the day occured.

Now, if you wanted to make this average look at each day and weight things (vesus each tick) you can accomplish this. Here is a thread to check out:

Volume Weighted Average Price

Be sure you check PLOT USING PRICE SCALE if you end up using the formula template from the above thread as a custom indicator.

- Craig
Here to Help!
bustermu
Posted : Friday, April 15, 2005 7:48:36 AM
Registered User
Joined: 1/1/2005
Posts: 2,645
Errata:

QUOTE (bustermu)


3*(V0*C0+V1*C1+V2*C2)/AVGV3


should read

(V0*C0+V1*C1+V2*C2)/(3*AVGV3)

Sorry,
Jim Murphy

burns
Posted : Monday, May 23, 2005 11:00:56 PM
Registered User
Joined: 2/26/2005
Posts: 3
I would like to create a custom indicator that
calculates the daily pivot value (h+l+c)/3
and then I would like to create 2 moving averages
7d and 14d of that pivot value and plot over the price graph. I right clicked the graph to create a custom indicator, put in the formula. I did this twice, for 7d
and then 14d moving average and saved it as a custom template. Is this the best way to do this? thanks.
Doug_H
Posted : Monday, May 23, 2005 11:12:30 PM


Worden Trainer

Joined: 10/1/2004
Posts: 4,308
Let's see if I understand what you did. You plotted the pivot point formula with a 7 day smoothing average. Then you plotted the same formula with a 14 day smoothing average. If that's what you did, I see no problem with it.

You could also plot the indicator with a smoothing average of 1, and then just add two moving averages to your indicator...a 7 and a 14. That would work, too.

- Doug
Teaching Online!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.