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
|
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
|
Gold Customer
Joined: 12/18/2004 Posts: 50
|
Thanks for the quick response!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|