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