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 |

Crossing EMA 20 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
babar2
Posted : Tuesday, February 21, 2006 2:10:14 PM
Registered User
Joined: 11/8/2005
Posts: 44
Hello!

I need help with some very simple(?) PCF's:

- Stock close below 20 EMA yesterday and above 20 EMA today.
- Stock close above 20 EMA yesterday and below 20 EMA today.

Can you help me?

Thanks a lot

Monica
Bruce_L
Posted : Tuesday, February 21, 2006 2:59:28 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following:

Stock close below 20 EMA yesterday and above 20 EMA today:

C1 < XAVGC20.1 AND C > XAVGC20

Stock close above 20 EMA yesterday and below 20 EMA today:

C1 > XAVGC20.1 AND C < XAVGC20

You may be interested in the following:

Create PCFs and EasyScans to find moving average crossovers
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
babar2
Posted : Wednesday, February 22, 2006 7:50:58 AM
Registered User
Joined: 11/8/2005
Posts: 44
Thanks a lot Bruce!

That was just what I needed.

Monica
dougeyboy
Posted : Wednesday, October 1, 2014 8:18:45 PM
Registered User
Joined: 5/6/2014
Posts: 5

Hi,

I'm wondering if there is a way to scan when price moves across an EMA (for example 30 period), in either direction?

 

Thanks for your help,

 

Doug

Bruce_L
Posted : Thursday, October 2, 2014 9:18:45 AM


Worden Trainer

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

You can just OR together a crossup formula with as crossdown formula.

(C > XAVGC30 AND C1 <= XAVGC30.1) OR (C < XAVGC30 AND C1 >= XAVGC30.1)

But I generally prefer the following form instead.

SGN(C - XAVGC30) <> SGN(C1 - XAVGC30.1)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dougeyboy
Posted : Thursday, October 2, 2014 1:54:24 PM
Registered User
Joined: 5/6/2014
Posts: 5

Thanks very much Bruce,

Doug

Bruce_L
Posted : Thursday, October 2, 2014 3:35:36 PM


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.