Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Scan please Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pegasis
Posted : Saturday, November 23, 2013 2:10:29 PM
Registered User
Joined: 6/17/2005
Posts: 63

Bruce

 

could you please show me a PCF for a NIB; inside bar

 

Thanks

Bruce_L
Posted : Monday, November 25, 2013 11:46:21 AM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.