Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

How do I search for stocks with a flat to flattish simple moving average? 50 sma for example. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
piyushk
Posted : Wednesday, September 3, 2014 12:41:40 PM
Platinum Customer Platinum Customer

Joined: 12/20/2005
Posts: 13

Hi.  How do I serach for stocks with a flat or near flat sma?  

Bruce_L
Posted : Thursday, September 4, 2014 11:02:12 AM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.