Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 9/1/2012 Posts: 4
|
I would like to have a PCF for 3 EXPONENTIAL MOVING AVERAGES CROSSING ONE ANOTHER at the same time - 10,20 and 50.
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If they have to be crossing each other on exactly the same bar.
SGN(XAVGC10 - XAVGC20) <> SGN(XAVGC10.1 - XAVGC20.1) AND SGN(XAVGC10 - XAVGC50) <> SGN(XAVGC10.1 - XAVGC50.1) AND SGN(XAVGC20 - XAVGC50) <> SGN(XAVGC20.1 - XAVGC50.1)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/2/2005 Posts: 13
|
avg c 10 > avg C 50 and avg c 10.1 <+ avg 50.1 shows error
|
|
Registered User Joined: 3/2/2005 Posts: 13
|
avg c 10 > avg c 50 and avg c 10.1 <= avg c 50.1 hows error disregard last post
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You can't have spaces in the indicators in the PCF Language. It needs to be written without the spaces.
AVGC10 > AVGC50 AND AVGC10.1 <= AVGC50.1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/2/2005 Posts: 13
|
OK THANKS
|
|
Registered User Joined: 3/2/2005 Posts: 13
|
Hello, looking for a suggestion on a smple scan that will pick up stocks coming from a down trend min 3 months that have started to flatten out. here's a perfect example, proshares DUG somewhere between aug and sept 1st the scan should flag this stock. This is an example of a triple bottom or possibly inverted head an shoulder pattern. I understand pattern recogniton formulas can be very limiting and difficult to program so scanning through a hundred or so would only take a few minutes . Possibly a indicator or two might do the trick . Greatly appreciated
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following Condition Formula checks for the 20-period linear regression slope to have an annualized percent change of between -10% and 10% during the current bar and less than -10% on the previous bar.
Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
ABS(100 * (EXP(253 * (9.5 * LOG(C ) + 8.5 * LOG(C1) + 7.5 * LOG(C2) + 6.5 * LOG(C3) + 5.5 * LOG(C4) + 4.5 * LOG(C5) + 3.5 * LOG(C6) + 2.5 * LOG(C7) + 1.5 * LOG(C8) + 0.5 * LOG(C9) - 0.5 * LOG(C10) - 1.5 * LOG(C11) - 2.5 * LOG(C12) - 3.5 * LOG(C13) - 4.5 * LOG(C14) - 5.5 * LOG(C15) - 6.5 * LOG(C16) - 7.5 * LOG(C17) - 8.5 * LOG(C18) - 9.5 * LOG(C19)) / 665) - 1)) <= 10 AND 100 * (EXP(253 * (9.5 * LOG(C1) + 8.5 * LOG(C2) + 7.5 * LOG(C3) + 6.5 * LOG(C4) + 5.5 * LOG(C5) + 4.5 * LOG(C6) + 3.5 * LOG(C7) + 2.5 * LOG(C8) + 1.5 * LOG(C9) + 0.5 * LOG(C10) - 0.5 * LOG(C11) - 1.5 * LOG(C12) - 2.5 * LOG(C13) - 3.5 * LOG(C14) - 4.5 * LOG(C15) - 5.5 * LOG(C16) - 6.5 * LOG(C17) - 7.5 * LOG(C18) - 8.5 * LOG(C19) - 9.5 * LOG(C20)) / 665) - 1) < -10
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |