| Welcome Guest, please  sign in  to participate in a discussion. | Search | 	Active Topics | | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/7/2004
 Posts: 65,138
 
 | 
	Close
	This is the close for any bar which has finished forming, but is the current price for a bar which is still active. 
	Template (v17+)
	Function Version
C(z ) 
	Indicator Version
Cz 
	Where zis the number of Bars Ago. z can also be a date in the indicator version. May 4, 2015 would be (single quotes required):'05/04/2015' 
	Related Topics
 -Bruce
 Personal Criteria Formulas
 TC2000 Support Articles
 | 
	|  | 
	
	
	| Registered User Joined: 4/4/2005
 Posts: 2
 
 | 
	How do I write a PCF for a first closing 5 day high.  I have written one for a close that is a 5 day high but I really want to only when it is the first closing 5 day high otherwise it is information overload. | 
	|  | 
	
	
	|  Administration
 
 Joined: 9/30/2004
 Posts: 9,187
 
 | 
	How do you define "the first closing 5 day high"? | 
	|  | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/7/2004
 Posts: 65,138
 
 | 
	So you want a closing 5 period high which is not also a closing 6 period high? You could check for your existing condition formula being true exactly 1 bar in a row as in the following example (but use your formula instead if you like it better). 
	TrueInRow(C > MAXC4.1, 2) = 1 
 -Bruce
 Personal Criteria Formulas
 TC2000 Support Articles
 | 
	|  | 
| Guest-1 |