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 |

Using average on other formula?? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Moonshine79
Posted : Saturday, December 20, 2014 3:32:44 PM
Registered User
Joined: 2/18/2014
Posts: 22

Hi, 

I wonder how to get average (AVG) of some other indicator. After some struggling its time to ask the forum :)

 

I.e. If i have an indicator like (c+avgc10) and i like the 20 avg of this.

I cant get it to work. Tried things like (avg20((c+avgc10)) and (avg((c+avgc10)),20)

 

No (good) results yet. Any help is appreciated.

 

Greetz

Michel

Bruce_L
Posted : Monday, December 22, 2014 11:25:29 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Unfortunately, the AVG() function cannot be applied to compound formulas. Your particular example could be written as follows.

AVGC20 + AVG(AVGC10,20)

Cascades of Moving Averages
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Moonshine79
Posted : Tuesday, December 23, 2014 5:05:25 AM
Registered User
Joined: 2/18/2014
Posts: 22

Ok that's a pitty Bruce.

In the meantime i was looking for a way to get a parallel line below an 5 day average volume line. I like to get a line that represents 90% of the Volume average. If compounded formula's would be possible this might be something like:

Avg(V, 5)*0.95 

Do you know a way to get the parallel line in another way? Thanks again.

 

Gr

Mcihel

Bruce_L
Posted : Tuesday, December 23, 2014 10:00:49 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Your formula could be written exactly as is or shortened a bit to:

.95 * AVGV5

Note that if you actually want 90% instead of 95% the formula would be:

.9 * AVGV5

When I say the AVG() function can't be applied to compound formulas I mean that it can be applied to a formula with a single component such as V, but can't be applied to a formula with multiple components such as H + L.

One option would be to add an Envelope Channel to price in TC2000 version 12.4. This plots a moving average as a centerline with upper and lower bands which are Width (%) above and below the moving average.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Moonshine79
Posted : Tuesday, December 23, 2014 11:20:22 AM
Registered User
Joined: 2/18/2014
Posts: 22

Thanks for your help.

 

grt

Michel

Bruce_L
Posted : Tuesday, December 23, 2014 11:20:54 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.