Registered User Joined: 1/31/2005 Posts: 10
|
Hi,
I'd like to be able to scan for the instance of a price within 10 percent of its xavg180. I would also like the xavg to be trending higher over say 30 days.
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A Condition Formula for price being within 10% of its 180-period exponential moving average can be written as:
ABS(C / XAVGC180 - 1) <= .1
Adding a requirement that the current XAVGC180 be greater than 30 bars ago can be written as:
ABS(C / XAVGC180 - 1) <= .1 AND XAVGC180 > XAVGC180.30
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: 1/31/2005 Posts: 10
|
Thanks for the quick response
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|