| Welcome Guest, please  sign in  to participate in a discussion. | 	Search | 	Active Topics |  | 
	
	
	
		Registered User Joined: 11/9/2004 Posts: 19 
	 | 
	
		I would like to build scan  on stocks with a stochastic setting of 40,5,10 to see what stocks have a value of < 20 for on a nine daytime span within the last 10 days 
	 | 
	 | 
	
	
	
		 
   Worden Trainer
  Joined: 10/7/2004 Posts: 65,138 
	 | 
	
		Are you interested in the %K of the Stochastic or the %D? 
 
Is the Stochastic Simple or Exponential? 
 
Understanding Stochastics 
 
Does "for on a nine daytime span within the last 10 days" mean nine out of the ten most recent days, nine days in a row ending on any of the ten most recent days or something else?
  -Bruce Personal Criteria Formulas TC2000 Support Articles
	 | 
	 | 
	
	
	
		Registered User Joined: 11/9/2004 Posts: 19 
	 | 
	
		Bruce: Thanks for your reply - stochastic is set as 40 SK:5 SD10  simple. 
 
Nine refers to when I use a 9 day chart as opposed to 3 days or daily I am looking for stocks that show extreme weakness within the last 10 days. Seems when fundamentally sound stocks reach this stage  
they rally sharply
	 | 
	 | 
	
	
	
		 
   Worden Trainer
  Joined: 10/7/2004 Posts: 65,138 
	 | 
	
		Assuming you are just interested in the Stochastic %K being below 20 during 1 of the most recent 10-Bars: 
 
STOC40.5 < 20 OR STOC40.5.1 < 20 OR STOC40.5.2 < 20 OR STOC40.5.3 < 20 OR STOC40.5.4 < 20 OR STOC40.5.5 < 20 OR STOC40.5.6 < 20 OR STOC40.5.7 < 20 OR STOC40.5.8 < 20 OR STOC40.5.9 < 20 
 
In TC2000 version 12, you can adjust the Time Frame of the Condition Formula when it is editor of created. You will want to set it to 9-Days. 
 
If you are using TeleChart 2007 and you mean the SK must be below 20 during 1 of the most recent 10-Bars: 
 
(STOC360 + STOC360.1.9 + STOC360.1.18 + STOC360.1.27 + STOC360.1.36) / 5 < 20 AND (STOC360.1.9 + STOC360.1.18 + STOC360.1.27 + STOC360.1.36 + STOC360.1.45) / 5 < 20 AND (STOC360.1.18 + STOC360.1.27 + STOC360.1.36 + STOC360.1.45 + STOC360.1.54) / 5 < 20 AND (STOC360.1.27 + STOC360.1.36 + STOC360.1.45 + STOC360.1.54 + STOC360.1.63) / 5 < 20 AND (STOC360.1.36 + STOC360.1.45 + STOC360.1.54 + STOC360.1.63 + STOC360.1.72) / 5 < 20 AND (STOC360.1.45 + STOC360.1.54 + STOC360.1.63 + STOC360.1.72 + STOC360.1.81) / 5 < 20 AND (STOC360.1.54 + STOC360.1.63 + STOC360.1.72 + STOC360.1.81 + STOC360.1.90) / 5 < 20 AND (STOC360.1.63 + STOC360.1.72 + STOC360.1.81 + STOC360.1.90 + STOC360.1.99) / 5 < 20 AND (STOC360.1.72 + STOC360.1.81 + STOC360.1.90 + STOC360.1.99 + STOC360.1.108) / 5 < 20 AND (STOC360.1.81 + STOC360.1.90 + STOC360.1.99 + STOC360.1.108 + STOC360.1.117) / 5 < 20 
 
If you actually mean the SK must be below 20 during 1 of the most recent 10-Days: 
 
(STOC360 + STOC360.1.9 + STOC360.1.18 + STOC360.1.27 + STOC360.1.36) / 5 < 20 AND (STOC360.1.1 + STOC360.1.10 + STOC360.1.19 + STOC360.1.28 + STOC360.1.37) / 5 < 20 AND (STOC360.1.2 + STOC360.1.11 + STOC360.1.20 + STOC360.1.29 + STOC360.1.38) / 5 < 20 AND (STOC360.1.3 + STOC360.1.12 + STOC360.1.21 + STOC360.1.30 + STOC360.1.39) / 5 < 20 AND (STOC360.1.4 + STOC360.1.13 + STOC360.1.22 + STOC360.1.31 + STOC360.1.40) / 5 < 20 (STOC360.1.5 + STOC360.1.14 + STOC360.1.23 + STOC360.1.32 + STOC360.1.41) / 5 < 20 AND (STOC360.1.6 + STOC360.1.15 + STOC360.1.24 + STOC360.1.33 + STOC360.1.42) / 5 < 20 AND (STOC360.1.7 + STOC360.1.16 + STOC360.1.25 + STOC360.1.34 + STOC360.1.43) / 5 < 20 AND (STOC360.1.8 + STOC360.1.17 + STOC360.1.26 + STOC360.1.35 + STOC360.1.44) / 5 < 20 AND (STOC360.1.9 + STOC360.1.18 + STOC360.1.27 + STOC360.1.36 + STOC360.1.45) / 5 < 20 
 
PCF Formula Descriptions 
Handy PCF example formulas to help you learn the syntax of PCFs!
  -Bruce Personal Criteria Formulas TC2000 Support Articles
	 | 
	 | 
| 
Guest-1 |