| Welcome Guest, please  sign in  to participate in a discussion. | 	Search | 	Active Topics |  | 
	
	
	
	
		Registered User Joined: 3/11/2005 Posts: 12 
	 | 
	
		I would like to use the CCI with a 20 day simple moving average as an indicator.  I'm sure others are doing it.  Is there a code already worked out for this?  or must I program it myself.  If I have to, I know how to do the formulas, but would like to be able to put in a zero line and a horizontal line at +100 and -100.  I would also like to display the current index number.  Thank you for your help.
  Tom 
	 | 
	 | 
	
	
	
		 
   Worden Trainer
  Joined: 10/1/2004 Posts: 4,308 
	 | 
	
		You'll find the formula at this link:
  CCI INDICATOR
  You could get a zero line by plotting TSV in the same window, and unchecking the visible box.
  Don't know how you would get the lines at +100 and -100.  The only way to get the index number displayed is to plot the indicator in the price window, and press the period key 2 times to reveal values for all indicators plotted in the top window.
  - Doug Teaching Online!
	 | 
	 | 
	
	
	
		Registered User Joined: 3/11/2005 Posts: 12 
	 | 
	
		Thanks!  I'll give pressing the period key two times a try.
	 | 
	 | 
| 
Guest-1 |