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 Formulas Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
wildcat7129
Posted : Monday, November 2, 2009 1:25:55 PM
Registered User
Joined: 12/10/2004
Posts: 25
I am trying to write a PCF where TSV 27 is below the 10 day MA 2 days ago and TSV was above the MA 5 day ago.  I can write the formula, but do not get the desired results.  Thanks for your counsel.
Bruce_L
Posted : Monday, November 2, 2009 1:35:07 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If the TSV is Simple and the MA is Simple:

TSV27.2 < AVG(TSV27.2,10) AND TSV27.5 > AVG(TSV27.5,10)

If the TSV is Simple and the MA is Exponential:

TSV27.2 < XAVG(TSV27.2,10) AND TSV27.5 > XAVG(TSV27.5,10)

If the TSV is Exponential and the MA is Simple:

XAVG(TSV1.2,27) < XAVG(TSV10.2,27) AND XAVG(TSV1.5,27) > XAVG(TSV10.5,27)

If the TSV is Exponential and the MA is Exponential:

XAVG(TSV1.2,27) > XAVG(TSV1.2,10) AND XAVG(TSV1.5,27) < XAVG(TSV1.5,10)

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!
Cascades of Moving Averages

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