Registered User Joined: 6/17/2005 Posts: 63
|
Bruce
could you please show me a PCF for a NIB; inside bar
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If by inside bar you just mean that the current bar is contained entirely within the previous bar:
L1 <= L AND H <= H1
You can add other requirements to this such as the current bar having a high that is above the close:
L1 <= L AND H <= H1 AND L < H
And/or that the current bar actually be smaller than the previous bar:
L1 <= L AND H <= H1 AND L < H AND H - L < H1 - L1
In the case of a "Narrow Inside Bar" you might even want to set a threshold for size of the inside bar such as it being less than 50% of the size of the previous bar:
L1 <= L AND H <= H1 AND L < H AND H - L < .5 * (H1 - L1)
Writing Custom Conditions: The Basics
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|