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 |

Condition within X bars Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
robbiefx125
Posted : Tuesday, October 17, 2017 10:30:11 AM
Gold Customer Gold Customer

Joined: 12/18/2004
Posts: 50
Hi,
 
I'd like to be able scan for a condition:
 
example xavgc3  > xavgc5  
 
that occurs at least 2 times within the most recent 10 bars.
 
Thanks
Bruce_L
Posted : Tuesday, October 17, 2017 10:33:56 AM


Worden Trainer

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

Please try the following in TC2000 v17.

CountTrue(XAVGC3 > XAVGC5, 10) >= 2

Or the following in TC2000 v7.

ABS(XAVGC3 > XAVGC5) - (XAVGC3.1 - XAVGC5.1) - (XAVGC3.2 - XAVGC5.2) - (XAVGC3.3 - XAVGC5.3) - (XAVGC3.4 - XAVGC5.4) - (XAVGC3.5 - XAVGC5.5) - (XAVGC3.6 - XAVGC5.6) - (XAVGC3.7 - XAVGC5.7) - (XAVGC3.8 - XAVGC5.8) - (XAVGC3.9 - XAVGC5.9) >= 2



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
robbiefx125
Posted : Tuesday, October 17, 2017 10:53:22 AM
Gold Customer Gold Customer

Joined: 12/18/2004
Posts: 50

Thanks for the quick response!

Bruce_L
Posted : Tuesday, October 17, 2017 10:54:54 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.