Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 11/4/2014 Posts: 11
|
When I use TSV24 in PCF's window, it gives me the "simple type averaging method" of the indicator(see edit in TSV indicator, the option of "average type"). Wht is the wy to have TSV24 lin, but with "exponential" averaging method of te indicator?
Please, do not be confused between averaging method of TSV and average of the indicator over a period of time.
see this example:
MSFTon 30-01-2015:
(these are the values I want to refer to)
TSV24(expontial method) : -189 k
EMA of TSV24(exp.) over 12 periods: -91,7 k
(these are not)
TSV24 (simple mehod) : -151 k (seem to be the default)
EMA of this TSV over 12 peiods: -70 k
I want to refer to the 2 fist set of values, not the second set.
thanks,
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
An exponential moving average of a raw TSV (a TSV with a period of 1) is the same thing as an exponential TSV of the same period as the moving average.
So a 24-period simple TSV can be written as follows.
TSV24
And a 24-period exponential TSV can be written as follows.
XAVG(TSV,24)
The 24-period simple TSV of 1 bar ago can be written as follows.
TSV24.1
While the 24-period exponential TSV 2f 1 bar ago can be written as follows.
XAVG(TSV1.1,24)
The 12-period exponential EMA of a 24-period exponential TSV can be written as follows.
(23 * XAVG(TSV,24) - 11 * XAVG(TSV,12)) / 12
Cascades of Moving Averages
This is the same thing as the 24-period exponential EMA of a 12-period exponential TSV. The order that the EMAs are applied does not matter.
An interesting consequence of the math is that the 12-period exponential moving average of a 24-period exponential TSV being above the TSV and a 24-period exponential moving average of a 12-period exponential TSV being above the TSV can both be written in exactly the same way as well.
XAVG(TSV,12) > XAVG(TSV,24)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 11/4/2014 Posts: 11
|
[/QUOTE] OK, I created new indicators wih the formulas and ploted them over the TSV(e)24 anEM12 of TSV(e)24. It's ok. If I save this new indicator as a custom ind. am I able to refer to it by its name or need to enter the fml each time?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you give the Custom PCF Indicator a name and then save the indicator in TC2000 version 12.4, you should be able to use the name you used when saving it to re-load it later.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 11/4/2014 Posts: 11
|
QUOTE (Bruce_L)
If you give the Custom PCF Indicator a name and then save the indicator in TC2000 version 12.4, you should be able to use the name you used when saving it to re-load it later.
But the question is if I want to refer to it in a condition can I refer to my new ind by it's name?
ex:
1: create this ind: XAVG(TSV1,24)
2: name it "MYExpTSV24"
3: In a condition (later) Search MYExpTSV4 = MIN(MYExpTSV24,21) (verify if the ind is at a low of 21 p.)
OR MYExpTSV24 >MYExpTSV24.1 (comparing current value with the last period)
cm
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
No, there is no way to reference the value in another formula. You would need to include the syntax for the formula within any other formula in order to use it.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 11/4/2014 Posts: 11
|
QUOTE (Bruce_L)
No, there is no way to reference the value in another formula. You would need to include the syntax for the formula within any other formula in order to use it.
Ok
thanks
(close)
cm
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |