Registered User Joined: 2/1/2010 Posts: 60
|
Hi,
Is there a way I can ask the system to scak for me stocks that have either 18 or 19 yearly bars on the chart?
Thanks,
Chris
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you want at least 18 bars then you create a Condition Formula with the time frame set to yearly checking price equaling itself 17 bars ago.
C17 = C17
It can only be true if there are at least 18 bars of data (note that the current bar would be C or C0). If you need 19 bars you would use C18 instead of C17.
Exactly 18 or 19 bars is a bit more problematic. You can't actually create an EasyScan for it. But you can use C17 = C17 to check for at least 18 bars of data and then create a WatchList Column (again set to a yearly time frame) based on the following Condition Formula with a check in it.
C19 = C19
Only the symbols without checks would have exactly 18 or 19 bars. You could edit the When True and When False settings for the WatchList Column to reverse things so it only shows checks When False if you wanted, but the result is essentially the same thing.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|