Platinum Customer
Joined: 10/7/2004 Posts: 14
|
My question is how to write a pcf that identifies which stocks are below the 20 line of a stochastic for 3 days or more.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
That would depend on your specific Stochastic settings:
Period: ?
SK Period: ?
SD Period: ?
Average Type: Simple or Exponential?
And on if you want the SK or SD line to be below 20. For example, if you had a Stochastic with the following settings:
Period: 8
SK Period: 3
SD Period: 3
Average Type: Simple
And wanted the SK to be below 20 for at least 3-Bars, the formula would be:
STOC8.3 < 20 AND STOC8.3.1 < 20 AND STOC8.3.2 < 20
You may wish to review the following:
Understanding Stochastics
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|