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 |

S-Roc crossover help. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
valtore
Posted : Wednesday, February 7, 2007 4:34:52 PM
Platinum Customer 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.
Bruce_L
Posted : Thursday, February 8, 2007 10:07:06 AM


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
valtore
Posted : Thursday, February 8, 2007 11:07:11 AM
Platinum Customer 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...
Bruce_L
Posted : Thursday, February 8, 2007 11:13:59 AM


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
valtore
Posted : Thursday, February 8, 2007 11:16:08 AM
Platinum Customer Platinum Customer

Joined: 1/23/2006
Posts: 26
as always...many thanks!!
Bruce_L
Posted : Thursday, February 8, 2007 11:16:38 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.