| Registered User Joined: 9/23/2016
 Posts: 3
 
 | 
 Hi,Bruce, i would like your help to write a PCF that scan the following criteria: 
 1)the lowest Stochastics of previous X bars( let's say 5 from 1 bar ago) is below 20; 
 2)the highest Stochastics of previous X bars(let's say 5 from 1 bar ago) is higher than 20. 
 3) the Stochastics of current bar is breaking the high of previous X bar(let's say 5 from 1 bar ago). 
 how would you write it? 
 i appreciate your help. 
   
 thank you 
 Kevin | 
	
	|  Administration
 
 Joined: 9/30/2004
 Posts: 9,187
 
 | 
	Assuming a stochastic period of 10 with %K set to 5... 
	MIN(STOC(10,5,1),5) < 20 AND MAX(STOC(10,5,1),5) > 20 AND STOC(10,5) > MAX(STOC(10,5,1),5) | 
	
	| Registered User Joined: 9/23/2016
 Posts: 3
 
 | 
 thank you very much! |