Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 23
|
I would like a Condition that computes true for the H-L rangeĀ of today greater than the range of the maximum high of the previous 5 days minus the minium low of the previous 5 days. Help please?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I think you want the following:
H - L > MAXH5.1 - MINL5.1
But you might want the following instead:
H - L > H1 - L1 AND H - L > H2 - L2 AND H - L > H3 - L3 AND H - L > H4 - L4 AND H - L > H5 - L5
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: 10/7/2004 Posts: 23
|
Neither of these Bruce. The first suggestion includes today in the Maxh5 I believe as does the Minl5.1
The second suggestion compares H-L to each days range. What I want is H-L > the difference between the highest high of the PREVIOUS 5 days (exclude today) and the minimum low of the previous 5 days (exclude today).
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Then you want the first suggestion as you appear to be misunderstanding what MAXH5.1 represents.
MAXH5.1 is the highest high in the five bars ending one bar ago and would not include today's high in a daily time frame.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 23
|
Got it ! thank you
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |