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 |

Setting up a condition that ensures Short Term MA's are GT Long Term Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
danielnewbury
Posted : Wednesday, September 10, 2014 2:06:44 AM
Registered User
Joined: 9/4/2014
Posts: 4

Hello, 

    I am trying to setup a condition that checks to make sure that the 4 week MA is GT the 10 week MA and that is greater than the 30 wk MA. My current syntax is C>AVGC20>AVGC50>AVGC150. In the test field it is coming up without an error, but the test is being done on MSFT, and the outputs appear to be True, while the stock prices should calculate true, and the scan results in nothing, but I know that, for example LUV, should be true for that. Any tutorial information on using averages would be appreciated. 

Thank you,

Dan

Bruce_L
Posted : Wednesday, September 10, 2014 8:35:06 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You need to make the comparisons individually instead of serially. So your Condition Formula needs to be as follows.

C > AVGC20 AND AVGC20 > AVGC50 AND AVGC50 > AVGC150

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.