| 
 Using nested IIF() statements will probably do what 
you want.  For example,  period = IIF(Interval() == inDaily, 50, 
IIF(Interval() == inWeekly, 200, .....) 
  ----- Original Message -----  
  
  
  Sent: Wednesday, November 16, 2005 1:34 
  PM 
  Subject: [amibroker] How many days are 
  displayed on screen variable? 
  
 
  As I zoom in or out on a chart I would like the periods 
  of my indicators  to change. Is there a way to get how many days are 
  displayed on screen?
  For example: Displaying 500 days in chart 
  should show MA(Close,200) when I zoom in showing 100 days the MA should be 
  MA(Close,20) or something like that.
  Any ideas how I can accomplish 
  that?
 
  -- 
        
  Cheers,       TaMeR 
  
    
  No virus found in this incoming message. Checked by AVG Free 
  Edition. Version: 7.1.362 / Virus Database: 267.13.2/170 - Release Date: 
  11/15/05
  
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |