Hi Ron - Unless something has changed, the Style arg won't take an array, i.e. 
style must be the same for all bars.  I think a workaround like this using 
multiple plot statments would probably work...

Plot( IIF( tXa, yFe50, NULL ), "a", colorRed, styleDots );
Plot( IIF( aXt, yFe50, NULL ), "a", colorWhite, styleDots );
...

  ----- Original Message ----- 
  From: ronald davis 
  To: [email protected] 
  Sent: Saturday, June 19, 2010 7:57 PM
  Subject: [amibroker] Help with a Plot(AFL containing IIF AFL's




  Above the dotted line, I have pasted an AFL Plot  that works great. 
  The aqua plot color changes color correctly when a cross occurs.
   
  Below the dotted line is an AFL Plot that I would like to have, but it will 
not work. 
   
  I would  be appreciate it  if a code guru would change this plot statement so 
that it still 
   
  changes color, but also changes the style from line to dots.  Ron D
   
  tXa=Cross(t,a);    aXt=Cross(a,t);    
   
  Plot(yFe50,"a",IIf(tXa,colorRed,IIf(aXt,colorRed,colorAqua)),styleThick);
  
------------------------------------------------------------------------------------
  
Plot(yFe50,"a",IIf(tXa,colorRed|styleDots,IIf(aXt,colorWhite|styleDots,colorAqua)),styleThick);
 


  

Reply via email to