| 
 PureBytes Links 
Trading Reference Links 
 | 
Yes that was the problem.  I had to change to two decimal places. 
 
thanks 
 
tony
 
 On 7/15/05, Tony Lei <yiupang91@xxxxxxxxx> wrote:
Hi,  
I did that but it returns 4.  And if I use 5, then it will not return 5. 
 
Tony
 
 On 7/14/05, Steve Dugas <
sjdugas@xxxxxxxxxxx> wrote:
I should think this ought to do 
it. 
  
Steve 
  
AddColumn( IIf( 
Cond1 == 1, Reward1, Reward2 ), "Reward", 1.2, colorDefault, IIf( Reward1 > 4 
OR Reward2 > 4, colorYellow, colorDefault ) ); 
  
  
----- Original Message -----
  
  
  
  Sent: Thursday, July 14, 2005 10:33 
  AM 
  Subject: [amibroker] Coding 
  
  Hi,
  AddColumn (IIf(Cond1==1 or , reward1, reward2), 
  "Reward", 1, colorDefault, IIf (Reward1 > 4.0 OR Reward2 > 4.0, 
  colorYellow, Null));
  I am trying to make the box turn yellow when 
  either Reward1 > 4 or Reward2 >4, otherwise no change.  My problem 
  is that I still get 4 as colored in yellow.  Any fix to 
  this?
  Maybe I should try:
  if (Cond1==1) {reward1} else 
  (Cond2==2) {reward2}
  thanks
  tony
 
 
  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
 
 
  
  
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
 
 
    
    
   
  
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 
 
  
---- LSpots keywords ?>
  ---- HM ADS ?>
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |