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 |

3 day high/3 day low price Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
stratiG
Posted : Tuesday, May 7, 2013 11:18:29 AM
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

Bruce_L
Posted : Tuesday, May 7, 2013 11:20:26 AM


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
stratiG
Posted : Tuesday, May 7, 2013 11:38:23 AM
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

Bruce_L
Posted : Tuesday, May 7, 2013 11:42:48 AM


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
stratiG
Posted : Tuesday, May 7, 2013 3:31:32 PM
Registered User
Joined: 10/14/2010
Posts: 55

Thank You..

Bruce_L
Posted : Tuesday, May 7, 2013 3:47:07 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.