Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Platinum Customer
Joined: 1/23/2006 Posts: 26
|
Hi all!!. If possible I could use help in writing 2 pcfs......the rate of change of a 13 day EMA of price crossing above its center Zero line and crossing its own 13 day EMA. Any help would be great.. Thanks.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (valtore) If possible I could use help in writing 2 pcfs......the rate of change of a 13 day EMA of price crossing above its center Zero line... Rate of Change in TeleChart is simply the Net Change. So the Rate of Change would be:
XAVGC13 - XAVGC13.1
And the Rate of Change xUp zero should be:
XAVGC13 - XAVGC13.1 > 0 AND XAVGC13.1 - XAVGC13.2 <= 0
QUOTE (valtore) ...and crossing its own 13 day EMA. Please try one the following:
Crossing Up:
XAVGC13 - XAVGC13.1 > XAVG(XAVGC13,13) - XAVG(XAVGC13.1,13) AND XAVGC13.1 - XAVGC13.2 <= XAVG(XAVGC13.1,13) - XAVG(XAVGC13.2,13)
Crossing Down:
XAVGC13 - XAVGC13.1 < XAVG(XAVGC13,13) - XAVG(XAVGC13.1,13) AND XAVGC13.1 - XAVGC13.2 >= XAVG(XAVGC13.1,13) - XAVG(XAVGC13.2,13)
Crossing Either Direction:
SGN(XAVGC13 - XAVGC13.1 - XAVG(XAVGC13,13) + XAVG(XAVGC13.1,13)) - SGN(XAVGC13.1 - XAVGC13.2 - XAVG(XAVGC13.1,13) + XAVG(XAVGC13.2,13)) <> 0
You may wish to review the following:
How to create a Personal Criteria Forumula (PCF) Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Platinum Customer
Joined: 1/23/2006 Posts: 26
|
Bruce thank you for the work....in reading your answer, I noticed my question was incomplete..should have read....the 21 day rate of change of a 13 day EMA of price crossing up above its center zero line...thanks again...
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
That doesn't change the formulas much actually:
The 21-Period Rate of Change would be:
XAVGC13 - XAVGC13.21
And the Rate of Change xUp zero should be:
XAVGC13 - XAVGC13.21 > 0 AND XAVGC13.1 - XAVGC13.22 <= 0
Crossing Up Through its own EMA:
XAVGC13 - XAVGC13.21 > XAVG(XAVGC13,13) - XAVG(XAVGC13.21,13) AND XAVGC13.1 - XAVGC13.22 <= XAVG(XAVGC13.1,13) - XAVG(XAVGC13.22,13)
Crossing Down Through its own EMA:
XAVGC13 - XAVGC13.21 < XAVG(XAVGC13,13) - XAVG(XAVGC13.21,13) AND XAVGC13.1 - XAVGC13.22 >= XAVG(XAVGC13.1,13) - XAVG(XAVGC13.22,13)
Crossing its own EMA in Either Direction:
SGN(XAVGC13 - XAVGC13.21 - XAVG(XAVGC13,13) + XAVG(XAVGC13.21,13)) - SGN(XAVGC13.1 - XAVGC13.22 - XAVG(XAVGC13.1,13) + XAVG(XAVGC13.22,13)) <> 0
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Platinum Customer
Joined: 1/23/2006 Posts: 26
|
as always...many thanks!!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |