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 |

Syntax Errors Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
chato
Posted : Monday, October 6, 2008 11:40:54 PM
Registered User
Joined: 8/4/2008
Posts: 12
The following PCF seems to be formulated correctly and gives correct results,

H > O * 1.034 AND H1 > O1 * 1.034 AND H2 > O2 * 1.034 AND H3 > O3 * 1.034 AND H4 > O4 * 1.034 AND AVGV5 > 800 AND C > 3.6 AND C < 200

I try to use the same format and change both the % (up over the open) and number of days. This new PCF triggers Syntax Error. Can you explain what I am doing wrong?

H > O * 1.0258 AND H1 > O1 * 1.0258 AND H2 > O2 * 1.0258 AND H3 > O3 * 1.0258 AND H4 > O4 * 1.0258 AND H5 > O5 * 1.0258 AND H6 > O6 * 1.0258 AND H7 > O7 * 1.0258 AND H8 >  O8 * 1.0258 AND H9 > O9 * 1.0258 AND H10 > O10 * ANDH11> O11 * 1.0258 AND H12 > O12 * 1.0258 AND AVGV5 > 800 AND C > 3.5 AND C < 200

Thanks - Chato
Bruce_L
Posted : Tuesday, October 7, 2008 7:49:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The H10 > O10 * term is missing the 1.0258. Please try the following instead:

H > O * 1.0258 AND H1 > O1 * 1.0258 AND H2 > O2 * 1.0258 AND H3 > O3 * 1.0258 AND H4 > O4 * 1.0258 AND H5 > O5 * 1.0258 AND H6 > O6 * 1.0258 AND H7 > O7 * 1.0258 AND H8 > O8 * 1.0258 AND H9 > O9 * 1.0258 AND H10 > O10 * 1.0258 AND H11> O11 * 1.0258 AND H12 > O12 * 1.0258 AND AVGV5 > 800 AND C > 3.5 AND C < 200

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
chato
Posted : Wednesday, October 8, 2008 11:09:05 AM
Registered User
Joined: 8/4/2008
Posts: 12
Many thanks Bruce, I am finally getting the hang of it - Chato
Bruce_L
Posted : Wednesday, October 8, 2008 11:14:19 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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