Thanks for the help all. It turns out that av was the issue. It's
value came from:

av = Sum(Volume, vb) / vb;

I actually had to run av through a for() loop to get the average
volume for a given number of periods (vb = volume bars) in order to
use it in an if statement. I find this a rather frustrating run-around
 for getting the job done. But then again, I'm new to AFL, so what do
I know?

My only complaint here, is that the if statement(an important one at
that), as used my AFL, is not flexible enough to be very useful.



--- In [email protected], "Gerald Monks" <[EMAIL PROTECTED]> wrote:
>
> 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
>


Reply via email to