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

[amibroker] What is wrong with this simple code?



PureBytes Links

Trading Reference Links

sf = IIf(av > mv AND Close[BarCount - 1] >= pl AND Close[BarCount - 1]
<= ph, 1, 0);

if(sf)
  {
  statements...
  }

I'm getting the dreaded Error 6. The if condition should not be
receiving an array pointer, only the "0" or "1" numeric value. It's
getting really tiresome dancing around the if statement in AFL to make
things work. I'm finding the if statement pretty much useless.

Any suggestions?

Thanks



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM