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 |

Bars Since 52 Week High Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
CazMoney
Posted : Thursday, October 19, 2017 8:42:00 AM
Registered User
Joined: 8/16/2015
Posts: 12

Will someone please help me with the PCF for Bars Since the 52 week high. In other words, if the 52 week high were made 5 bars ago, the indicator would return "5"... if today a new 52 week high were made, it would return"0", tomorrow "1", the next day "2", then "3"...

Thanks in advance for the help.

Bruce_L
Posted : Thursday, October 19, 2017 9:02:46 AM


Worden Trainer

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

This could be written as follows in a daily time frame for TC2000 v17.

251 - 251 * AroonUp251 / 100

Or the following in a weekly time frame.

51 - 51 * AroonUp51 / 100

Note the period used is the period of the high minus 1. The value returned will vary from 0 (for the current bar) to the period of the high minus 1 (the span covered is the period of the high).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
CazMoney
Posted : Thursday, October 19, 2017 9:35:58 AM
Registered User
Joined: 8/16/2015
Posts: 12

Thanks Bruce... for the bars since 52 week low be:  51-51*aroonDn51/100?

Bruce_L
Posted : Thursday, October 19, 2017 9:41:13 AM


Worden Trainer

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

Sorry, I probably should have included this link in the original reply.

Aroon & Aroon Oscillator

You have to spell out "down" instead of just using "dn", but otherwise, it is correct.

51 - 51 * AroonDown51 / 100



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
CazMoney
Posted : Thursday, October 19, 2017 9:44:56 AM
Registered User
Joined: 8/16/2015
Posts: 12


Never mind... I figured it out. Thanks for the help.

CazMoney
Posted : Thursday, October 19, 2017 9:45:50 AM
Registered User
Joined: 8/16/2015
Posts: 12

Sorry... didn't realize you'd already responded. Thanks for the help Bruce

Bruce_L
Posted : Thursday, October 19, 2017 9:58:03 AM


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.