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 |

PCF help Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mbreslin
Posted : Wednesday, November 2, 2011 12:51:58 PM
Registered User
Joined: 10/12/2011
Posts: 8
Hi, im trying to write a PCF for a 10SMA cross of a 30EMA for short and long positions. and an optional tweak that you might feel to in an alternate PCF would be great. also for a 4SMA cross of a 9EMA.  Thank you.   Mike
Bruce_L
Posted : Wednesday, November 2, 2011 1:02:42 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You are generally better off adding the Indicators to the chart, clicking on them and selecting Create Condition in TC2000 version 12 than creating a Condition Formula. The resulting Condition is usually faster and more likely to match the chart.

Indicators, Sorting & Scanning

If you really need to create a Condition Formula for some reason, a formula for the SMA10 crossing up through the EMA30 could be written as:

AVGC10 > XAVGC30 AND AVGC10.1 <= XAVGC30.1

A formula for the SMA10 crossing down through the EMA30 could be written as:

AVGC10 < XAVGC30 AND AVGC10.1 >= XAVGC30.1

A formula for the SMA4 crossing up through the EMA9 could be written as:

AVGC4 > XAVGC9 AND AVGC4.1 <= XAVGC9.1

A formula for the SMA4 crossing down through the EMA9 could be written as:

AVGC4 < XAVGC9 AND AVGC4.1 >= XAVGC9.1

Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
mbreslin
Posted : Wednesday, November 2, 2011 1:10:40 PM
Registered User
Joined: 10/12/2011
Posts: 8
Thanks Bruce.
Bruce_L
Posted : Wednesday, November 2, 2011 1:13:21 PM


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.