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 |

MOVING AVERAGES CROSSOVERS Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Stock Technician
Posted : Sunday, October 12, 2014 6:25:49 AM
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.

Bruce_L
Posted : Monday, October 13, 2014 10:03:16 AM


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
wolff
Posted : Wednesday, October 15, 2014 11:30:25 AM
Registered User
Joined: 3/2/2005
Posts: 13

avg c 10 > avg C 50 and avg c 10.1 <+ avg  50.1  shows error 

wolff
Posted : Wednesday, October 15, 2014 11:32:34 AM
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

Bruce_L
Posted : Wednesday, October 15, 2014 11:34:50 AM


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
wolff
Posted : Wednesday, October 15, 2014 12:52:23 PM
Registered User
Joined: 3/2/2005
Posts: 13

OK THANKS

wolff
Posted : Wednesday, October 15, 2014 1:45:40 PM
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

Bruce_L
Posted : Wednesday, October 15, 2014 4:19:47 PM


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
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.