| Welcome Guest, please  sign in  to participate in a discussion. | Search | 	Active Topics | | 
	
	
	| Registered User Joined: 10/7/2004
 Posts: 166
 
 | 
	How can I write a PCF to identify when the 2MA has crossed-over (up or down-through) the 8MA? | 
	|  | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/7/2004
 Posts: 65,138
 
 | 
	If both moving averages are simple: 
	SGN(AVGC2 - AVGC8) <> SGN(AVGC2.1 - AVGC8.1) 
	You would need to change the AVGC to an XAVGC if that moving average is exponential instead. 
	Moving Average PCF TemplatesThings to check if your moving averages don't "seem right" or "seem to match"
 
 -Bruce
 Personal Criteria Formulas
 TC2000 Support Articles
 | 
	|  | 
	
	
	| Registered User Joined: 10/7/2004
 Posts: 166
 
 | 
	Thanks, it works great! | 
	|  | 
	
	
	| Registered User Joined: 11/26/2012
 Posts: 5
 
 | 
	  
	Hi this condition looks good 
	I’m new to TC2000 how would you pipe the results of this condition into a second condition that would check for volume 50% above average 30 day volume. 
	Thx Dan R | 
	|  | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/7/2004
 Posts: 65,138
 
 | 
	You could create a single Condition Formula by using an AND: 
	SGN(AVGC2 - AVGC8) <> SGN(AVGC2.1 - AVGC8.1) AND V >= 1.5 * AVGV30 
	Or you could create a Condiiton Formula for the Volume: 
	V >= 1.5 * AVGV30 
	And include both Condition Formulas as EasyScan Conditions in the same EasyScan. 
	EasyScan BasicsEasyScan Expanded
 
 -Bruce
 Personal Criteria Formulas
 TC2000 Support Articles
 | 
	|  | 
	
	
	| Registered User Joined: 11/26/2012
 Posts: 5
 
 | 
	Thx Bruce | 
	|  | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/7/2004
 Posts: 65,138
 
 | 
	You're welcome. 
 -Bruce
 Personal Criteria Formulas
 TC2000 Support Articles
 | 
	|  | 
| Guest-1 |