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 |

Distance between Two Moving Averages Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
nimal
Posted : Friday, September 20, 2013 12:24:43 AM
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

Bruce_L
Posted : Friday, September 20, 2013 8:47:43 AM


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
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.