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 |

Counting Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
robbiefx125
Posted : Friday, May 4, 2018 3:58:39 PM
Gold Customer Gold Customer

Joined: 12/18/2004
Posts: 50

I was just wondering if there is a better alternative to COUNTTRUE for this purpose.

For example, more efficient or shorter.

I am simply counting how many of the averages exceed the next one.

10 > 20 +   20 > 50  +   50  > 100, etc.

 

COUNTTRUE(XAVGC10>XAVGC20,1) + COUNTTRUE(XAVGC20>XAVGC50,1) + COUNTTRUE(XAVGC50>XAVGC100,1) 
 
Bruce_L
Posted : Friday, May 4, 2018 4:22:44 PM


Worden Trainer

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

CountTrue is designed to count how many times something is true over time. Maybe something like the following?

ABS(XAVGC10 > XAVGC20) - (XAVGC20 > XAVGC50) - (XAVGC50 > XAVGC100)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
robbiefx125
Posted : Friday, May 4, 2018 4:52:19 PM
Gold Customer Gold Customer

Joined: 12/18/2004
Posts: 50

Yes, that will do it. Thanks!

Bruce_L
Posted : Friday, May 4, 2018 4:52: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.