Registered User Joined: 1/21/2014 Posts: 15
|
I need a formula, condition, where I can have all the stocks that touched or crossed yesterday’ simple day moving average (SMA 12)
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Condition Formula if you just need yesterday's bar to touch yesterday's moving average.
L1 <= AVGC12.1 AND AVGC12.1 <= H1
Or the following Condition Formula if you want to include cross ups or cross downs through the moving average from the previous close as well.
(C2 < AVGC12.2 OR L1 <= AVGC12.1) AND (AVGC12.1 <= H1 OR AVGC12.2 < C2)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|