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 |

Today's Range > the Max Range Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
thnkbigr
Posted : Tuesday, November 28, 2017 2:15:34 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,207

Bruce

How do I write a PCF that says todays DR is > the Max Daily Range in the last 22 days 

ATR1 > Max(ATR1 last 22 days)  

Bruce_L
Posted : Tuesday, November 28, 2017 2:30:09 PM


Worden Trainer

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

Well if you are just interested in the range (which seems to what is in the language of the request).

H - L > MAX(H1 - L1, 22)

But if you are interested in the true range (which seems to be what is in your example).

ATR1 > MAX(ATR1.1, 22)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
thnkbigr
Posted : Tuesday, November 28, 2017 2:39:32 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,207

I want to say that today's True Range is the largest TR in the last 22 days 

Bruce_L
Posted : Tuesday, November 28, 2017 2:48:33 PM


Worden Trainer

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

Then you probably want to change the period to 21 instead of 22.

ATR1 > MAX(ATR1.1, 21)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
thnkbigr
Posted : Tuesday, November 28, 2017 3:59:52 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,207

thx

Bruce_L
Posted : Tuesday, November 28, 2017 4:01:01 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.