Registered User Joined: 2/14/2006 Posts: 117
|
I need your help to find stocks where the distance between two moving average is X when the faster MA is above the Slow MA. ie xavgc5 and xavgc 20. I tried " xavgc5 - xavgc20 < 30 " and it returns all stocks in the watchlist.
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm assuming from your formula that you want the distance to be less than 30. If so:
XAVGC20 < XAVGC5 AND XAVGC5 < XAVGC20 + 30
If you want the distance to be greater than 30:
XAVGC5 > XAVGC20 + 30
I will note that 30 points is a pretty large distance for the moving averages to be apart. This values will depend as much on the magnitude of the price of the stock as on any perceived difference between the two moving averages. You may want to considure using a percent difference instead of a net difference.
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|