Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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
|
|
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
|
|
Registered User Joined: 2/18/2014 Posts: 22
|
Thanks for your help.
grt
Michel
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |