Registered User Joined: 7/30/2012 Posts: 6
|
Hello,
Is there a way I can scan for stocks that have reversed or rejected the zero line on cci indicator?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It would depend on your particular unambiguous objective definition of "reversed or rejected the zero line". If it is defined as being crossing above or below the zero line between 2-bars ago and 1-bar ago and then crossing back to where it was between 1-bar ago and the current bar, it could be written as:
SGN(H + L + C - AVGH5 - AVGL5 - AVGC5) <> SGN(H1 + L1 + C1 - AVGH5.1 - AVGL5.1 - AVGC5.1) AND SGN(H1 + L1 + C1 - AVGH5.1 - AVGL5.1 - AVGC5.1) <> SGN(H2 + L2 + C2 - AVGH5.2 - AVGL5.2 - AVGC5.2) AND SGN(H + L + C - AVGH5 - AVGL5 - AVGC5) = SGN(H2 + L2 + C2 - AVGH5.2 - AVGL5.2 - AVGC5.2) AND SGN(H + L + C - AVGH5 - AVGL5 - AVGC5) <> 0
CCI INDICATOR
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 7/30/2012 Posts: 6
|
Excellent! Thanks for your help, it works great.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|