PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "Gerald Monks" <glmonks@xxx> 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
>
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/655 - Release Date: 1/28/2007 1:12 PM
|