Platinum Customer
Joined: 12/20/2005 Posts: 13
|
Hi. How do I serach for stocks with a flat or near flat sma?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could possible check for the total range of the 50 period simple moving average over time being less than some arbitrary percentage. I really don't know what period of time or what percentage you would want to use though.
The following Condition Formula checks for the range over 20 bars to be less than 1%.
MAX(AVGC50,20) < 1.01 * MIN(AVGC50,20)
Another possibility would be to check for the range over some arbitrary number of bars to only be a certain percentage of the range over a longer number of bars. Again, I really don't know what periods or percentages you would want to us.
The following Condition Formula checks for the range over 10 bars to be less than 10% of the range over 40 bars.
MAX(AVGC50,10) - MIN(AVGC50,10) < .1 * (MAX(AVGC50,40) - MIN(AVGC50,40))
PCF Formula Descriptions Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|