Registered User Joined: 12/30/2004 Posts: 4 
	 | 
	
		 
	How would it a condition be written that checks 
	X number of consecutive higher high and higher low bars in a row - each bar closes > open 
	X consecutive Lower high and Lower low bars in a row - each bar closes < open 
	And same to say Minumum rather than define the exact # of bars 
	 | 
	
	
		 
   Worden Trainer
  Joined: 10/7/2004 Posts: 65,138 
	 | 
	
		 
	If you want to count the number of higher bars in a row, you would use something like the following. 
	TrueInRow(C > O AND H > H1 AND L > L1, 20) 
	That just returns a numeric value which will run from 0 through 20. If there are 50 bars in a row, it would still return 20. 
	So let's say you wanted to check for exactly 3 bars in a row (not 2 bars and not 4 bars). 
	TrueInRow(C > O AND H > H1 AND L > L1, 4) = 3 
	If you wanted to check for at least 3 bars in a row. 
	TrueInRow(C > O AND H > H1 AND L > L1, 3) = 3 
	Just reverse the > signs into < signs to reverse directions. 
  -Bruce Personal Criteria Formulas TC2000 Support Articles
	 |