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 |

Price Bouncing off a moving average Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
walabi-1
Posted : Monday, February 13, 2012 12:34:25 AM
Registered User
Joined: 10/9/2006
Posts: 35
How do you write a pcf for a stock that has been trending up for 20 days and then pulling back to 20 SMA
Bruce_L
Posted : Monday, February 13, 2012 10:18:32 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You could check for the 20-Period Linear Regression Slope and Net Change over the same period to have positive up through yesterday and for the current price to be less than or equal to 20-Period Simple Moving Average:

19 * (C1 - C20) + 17 * (C2 - C19) + 15 * (C3 - C18) + 13 * (C4 - C17) + 11 * (C5 - C16) + 9 * (C6 - C15) + 7 * (C7 - C14) + 5 * (C8 - C13) + 3 * (C9 - C12) + C10 > C11 AND C1 > C20 AND C <= AVGC20

Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

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