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 |

MACD pcf Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dkanderson
Posted : Tuesday, May 1, 2007 1:38:55 AM
Registered User
Joined: 12/5/2004
Posts: 9
I've written the following pcf for MACD 12.26.9 crossing over today with 1,000,000 avg volume for 90 days and average price over $15 for 90 days. I'm getting a syntax error saying "Market days needed to caluculate criterion:176.

XAVGC12 - XAVGC26 > XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND (XAVGC12.1 - XAVGC26.1 < XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9) AND AVGV90 >= 10000 AND AVGC90 >= 15

I don't understand my error or whether or not the formula is correct for what I'm trying to do.
Bruce_L
Posted : Tuesday, May 1, 2007 8:22:28 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The response mentioned (Market days needed to calculate criterion:176) is not a error message. It is informational and means that symbols with less than 176 market days of data will not calculate. That said, your formula appears to have an extra parenthesis that is causing a Syntax Error. please try the following instead:

XAVGC12 - XAVGC26 > XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND XAVGC12.1 - XAVGC26.1 < XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9) AND AVGV90 >= 10000 AND AVGC90 >= 15

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Understanding MACD
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.