Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Max/Min Condition Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ned1
Posted : Friday, January 17, 2014 11:48:57 AM
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?

Bruce_L
Posted : Friday, January 17, 2014 11:51:35 AM


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
ned1
Posted : Friday, January 17, 2014 12:02:37 PM
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).

Bruce_L
Posted : Friday, January 17, 2014 12:10:06 PM


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
ned1
Posted : Friday, January 17, 2014 12:11:25 PM
Registered User
Joined: 10/7/2004
Posts: 23

Got it ! thank you

Bruce_L
Posted : Friday, January 17, 2014 12:11:59 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-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.