Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Gold Customer
Joined: 12/7/2007 Posts: 88
|
I'm trying to look at the number of stocks down 20% or more from the 52week high, so I wrote: c1<(H251*.8). Is this going to generate what I'm looking for? Thank you.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You probably want something more like the following:
C <= .8 * MAXH252
H251 is the high of 251 bars ago while MAXH252 is the highest high in the most recent 252 bars.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/9/2005 Posts: 18
|
Stochastic crossing in a 3 day chart. I have a 3 day chart with a Stochastic 14,5,3 in a window. Can you write me the PCF for the SD5 crossing above the SD3 with the period 14?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm going to assume you mean SK5 crossing up through SD3 and that the stochastic is simple and not exponential.
STOC14.5 > AVG(STOC14.5,3) AND STOC14.5.1 <= AVG(STOC14.5.1,3)
Understanding Stochastics
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/9/2005 Posts: 18
|
Bruce, That's simple. I have the stochastic in a chart where each bar represents 3 days.A long time ago you wrote one for a 4day bar chart and it was more complex. Are you sure you understood my query?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I hadn't noticed this was in the v7 forum. In v16, the formulas are the same no matter what the time frame might be. Please try the following Condition Formula instead.
2 * STOC42 + STOC42.1.3 > 2 * STOC42.1.15 + STOC42.1.18 AND 2 * STOC42.1.3 + STOC42.1.6 <= 2 * STOC42.1.18 + STOC42.1.21
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/9/2005 Posts: 18
|
Thanks. Looks more like what I expected. I should have noted I use v7. The new version is a bit too complex for this oldtimer. Maybe someday I'll figure out how you do this PCF. Or better yet learn v16.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am sorry I didn't catch that the first time, but I'm glad you caught it.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |