Registered User Joined: 8/3/2014 Posts: 4
|
Hello,
I am trying to create an easyscan condition that would search for instruments whose price action has remained in a tight range for 5+ trading days. I am looking to set a 1% value of total price over a period of 5 or more trading days.
For example, here's a screenshot of recent price action on RUT, wherein price over the last six candles has remained within a high/low range of about 17 points. This is about 1.5% of the value of RUT at 1173.
So I'm looking to scan for these kinds of conditions but am not sure which rules apply in the easyscan library. Any ideas?
Thanks!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could create a Condition Formula for this. Checking for a maximum price range of 1% over 5 bars could be written as follows.
MAXH5 <= 1.01 * MINL5
Checking for a maximum price range of 1.5% over 5 bars could be written as follows.
MAXH5 <= 1.015 * MINL5
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 8/3/2014 Posts: 4
|
Bruce, that works great. Thanks so very much!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|