Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
Registered User Joined: 11/8/2005 Posts: 44
|
Thanks a lot Bruce!
That was just what I needed.
Monica
|
|
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
|
|
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
|
|
Registered User Joined: 5/6/2014 Posts: 5
|
Thanks very much Bruce,
Doug
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |