Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/14/2010 Posts: 55
|
Hi Bruce,
Can you help me with some code? I want to know at what price today did a 3 day high/low happen.
george
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The price of the current 3-bar high can be written as:
MAXH3
The price of the current 3-bar low can be written as:
MINL3
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/14/2010 Posts: 55
|
Sorrry Bruce I don't think I expained my self properly. I want to know at what price did todays bar cross the highest high/lowest low of the past 3 days.
george
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following Indicator Formula returns 0 if the current bar does not intersect the high of the previous 3-bars and the high of the previous 3-bars if it does intersect:
ABS(L <= MAXH3.1 AND MAXH3.1 <= H) * MAXH3.1
The following Indicator Formula returns 0 if the current bar does not intersect the low of the previous 3-bars and the low of the previous 3-bars if it does intersect:
ABS(L <= MINL3.1 AND MINL3.1 <= H) * MINL3.1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/14/2010 Posts: 55
|
Thank You..
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |