[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Coding



PureBytes Links

Trading Reference Links

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





YAHOO! GROUPS LINKS