Registered User Joined: 11/1/2004 Posts: 47 
	 | 
	
		I want to display two exponential moving averages as follows: display moving average A until a specific date then display average B from that specific date to another date so only one indicator is displayed at any given time.  I am thinking about using non-displayed EMAs indicators as base for custom indicators with user inputs (dates from/to).  How do I control the display of each custom indicator according to the dates? 
 
Robert
	 | 
	
	
		Registered User Joined: 12/31/2005 Posts: 2,499 
	 | 
	
		 one approach is to add both the the chart and not draw them and then use them in real code: 
 
'# MA1 = indicator.MovingAverage.3 
'# MA2 = indicator.MovingAverage.4 
'# dateOfInterest = userinput.date = 12/08/08 
If currentdate >= dateOfInterest Then 
 plot = MA1.value 
Else 
 plot = MA2.value 
End If 
  
	 | 
	
	
		Registered User Joined: 11/1/2004 Posts: 47 
	 | 
	
		Thanks jas0501. This is what I was looking for. 
	 |