| 
 Try this: 
  
colorResult = IIF(cond1, colorGreen, IIF(cond2, 
colorRed, colorBlue)); 
Plot(result, "", colorResult); 
  ----- Original Message -----  
  
  
  Sent: Sunday, November 27, 2005 8:18 
  PM 
  Subject: [amibroker] Simple Plot() 
  question 
  
  I'd like to use different colors for each of three 
  possible conditions. The obvious ways (at least to me) 
  are:
  IIf(Cond1,colorGreen,IIf(Cond2,coloRed,colorBlue)); 
  Or
  IIf(Cond1,colorGreen,colorBlue) + 
  IIf(Cond2,colorRed,colorBlue);
  Unfortunately, with the first method, 
  only the second IIf statement counts; the parts of the line that should be 
  green end up blue. And with the second method, nothing shows up at all; the 
  tooltips give the appropriate value, but no line appears.
  Can anyone 
  tell me how to make this work?
  Many 
  thanks.
  Owen
 
 
  
  
    
  No virus found in this incoming message. Checked by AVG Free 
  Edition. Version: 7.1.362 / Virus Database: 267.13.8/184 - Release Date: 
  11/27/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
 
 
    
 |