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 programming Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
DFW1948
Posted : Wednesday, February 29, 2012 2:14:46 PM
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?
Bruce_L
Posted : Wednesday, February 29, 2012 2:22:40 PM


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