Registered User Joined: 10/2/2008 Posts: 16
|
I would like to create a PCF where closing prices for the last 45 days are above the simple 50 MA. The price must not have fallen below the 50 MA during the entire 45 days.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Personal Criteria Formula:
C > AVGC50 AND C1 > AVGC50.1 AND C2 > AVGC50.2 AND C3 > AVGC50.3 AND C4 > AVGC50.4 AND C5 > AVGC50.5 AND C6 > AVGC50.6 AND C7 > AVGC50.7 AND C8 > AVGC50.8 AND C9 > AVGC50.9 AND C10 > AVGC50.10 AND C11 > AVGC50.11 AND C12 > AVGC50.12 AND C13 > AVGC50.13 AND C14 > AVGC50.14 AND C15 > AVGC50.15 AND C16 > AVGC50.16 AND C17 > AVGC50.17 AND C18 > AVGC50.18 AND C19 > AVGC50.19 AND C20 > AVGC50.20 AND C21 > AVGC50.21 AND C22 > AVGC50.22 AND C23 > AVGC50.23 AND C24 > AVGC50.24 AND C25 > AVGC50.25 AND C26 > AVGC50.26 AND C27 > AVGC50.27 AND C28 > AVGC50.28 AND C29 > AVGC50.29 AND C30 > AVGC50.30 AND C31 > AVGC50.31 AND C32 > AVGC50.32 AND C33 > AVGC50.33 AND C34 > AVGC50.34 AND C35 > AVGC50.35 AND C36 > AVGC50.36 AND C37 > AVGC50.37 AND C38 > AVGC50.38 AND C39 > AVGC50.39 AND C40 > AVGC50.40 AND C41 > AVGC50.41 AND C42 > AVGC50.42 AND C43 > AVGC50.43 AND C44 > AVGC50.44
Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|