Registered User Joined: 7/15/2010 Posts: 5
|
((C1>O1)AND(O>C)AND(O<=C1)AND(O1<=C)AND((O-C)<(C1-O1)))
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I don't see anything obviously incorrect about the syntax although the fact that it is all ANDs means you can get rid of all of the parentheses.
C1 > O1 AND O > C AND O <= C1 AND O1 <= C AND O - C < C1 - O1
It means the close of the previous bar is above the open of the previous bar, the open of the current bar is above the close of the current bar, the open of the current bar is less than or equal to the close of the previous bar, the open of the previous bar is less than or equal to the close of the current bar and the body of the current bar is less than the body of the previous bar.
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|