Registered User Joined: 4/3/2011 Posts: 8
|
Can you help with a formula for this?
|
Gold Customer
Joined: 4/10/2006 Posts: 954
|
How about this, close was less than avg10 and avg65 6 days ago, but is above those 1 day ago.
((c.6 < avgc10.6) and (c.6 < avgc65.6))
and ((c > avgc10.1) and (c > avgc65.1))
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you mean Price has been above both the 10-Period and 65-Period Moving Averages at least once during the most recent 5-Bars then:
(C > AVGC10 AND C > AVGC65) OR (C1 > AVGC10.1 AND C1 > AVGC65.1) OR (C2 > AVGC10.2 AND C2 > AVGC65.2) OR (C3 > AVGC10.3 AND C3 > AVGC65.3) OR (C4 > AVGC10.4 AND C4 > AVGC65.4)
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
|