Your IIF() is wrong. Should be iif(x, truepart, iif(y, truepart, falsepart)). The second iif() is the falsepart of the first iif().
Bill ----- Original Message ----- From: Mohammed To: [email protected] Sent: Friday, September 14, 2007 12:03 PM Subject: [amibroker] Please Help Hi, Any one can help with this formula, _SECTION_BEGIN("Close"); Plot( Close, "", IIf( LongSetup, UpColor, DownColor, IIf( TBuy, EntryColor, DownColor ) , styleBar | ParamStyle ("Style"))); _SECTION_END(); I got Too many arguments error. Thanks an advance Regards
