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 |

X out of y days Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
thnkbigr
Posted : Wednesday, September 26, 2018 6:57:48 PM
Platinum Customer Platinum Customer

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

Bruce,

I know in TC we can adjust a condition to say if it is true in any of the last X num days but is there anyway we can say if the condition is true 5 out of the last 10 days 

bcochrane
Posted : Wednesday, September 26, 2018 9:39:45 PM
Registered User
Joined: 9/17/2010
Posts: 484

CountTrue(Condition,10)= 5

Bruce_L
Posted : Thursday, September 27, 2018 11:19:13 AM


Worden Trainer

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

Note that bcochrane's solution is for exactly 5 bars. If you wanted at least 5 bars you would use the following instead.

CountTrue(your condition here, 10) >= 5



-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.