Registered User Joined: 10/7/2004 Posts: 142
|
Is it possible to write a PCF that would create an indicator whose value is the lowest of a set of other indicators?For example: What is the lowest value of the moving averages for time periods 5, 10, 15, 20?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Yes, it is possible to do so using the techniques in the Min Max PCFs topic. So if the Moving Averages are Simple, the formula would be:
(AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) + AVGC15 + AVGC20 - ABS(AVGC15 - AVGC20) - ABS(AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) - AVGC15 - AVGC20 + ABS(AVGC15 - AVGC20))) / 4
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
|