Really....? I get errors.
What version of AmiBroker are using...?

--- In [email protected], "Bill S" <[EMAIL PROTECTED]> wrote:
>
> The only error I got was "ABC_check" was not initialized.  After fixing
> that, it ran without error.
> 
> 
> On Thu, Nov 6, 2008 at 12:44 PM, sidhartha70 <[EMAIL PROTECTED]> wrote:
> 
> >   Sorry... let me repost that code...
> >
> > HLRange = abs( H - L );
> > ABC = HLRange > Ref( HLRange, -1 ) AND HLRange > Ref( HLRange, -2) AND
> > HLRange > Ref( HLRange, -3 );
> > XYZ_Check=IIf(Ref(ABC,-1),1,IIf(Ref(ABC,-2),2,IIf(Ref(ABC,-3),3,0)));
> >
> > if(XYZ_Check==0)
> > {
> > printf("XYZ_Check = " + XYZ_Check);
> > }
> > if(XYZ_Check==1)
> > {
> > printf("XYZ_Check = " + XYZ_Check);
> > }
> > if(XYZ_Check==2)
> > {
> > printf("XYZ_Check = " + XYZ_Check);
> > }
> > if(XYZ_Check==3)
> > {
> > printf("XYZ_Check = " + XYZ_Check);
> > }
> >
> > --- In [email protected] <amibroker%40yahoogroups.com>,
> > "sidhartha70" <sidhartha70@> wrote:
> > >
> > > Hi All,
> > >
> > > I keep running into a consistent coding structure problem,
> > >
> > > HLRange = abs( H - L );
> > > ABC = HLRange > Ref( HLRange, -1 ) AND HLRange > Ref( HLRange, -2 )
> > > AND HLRange > Ref( HLRange, -3 );
> > >
XYZ_Check=IIf(Ref(ABC,-1),1,IIf(Ref(ABC,-2),2,IIf(Ref(ABC,-3),3,0)));
> > >
> > > if(ABC_Check==0)
> > > {
> > > printf("ABC_Check = " + ABC_Check);
> > > }
> > > if(ABC_Check==1)
> > > {
> > > printf("ABC_Check = " + ABC_Check);
> > > }
> > > if(ABC_Check==2)
> > > {
> > > printf("ABC_Check = " + ABC_Check);
> > > }
> > > if(ABC_Check==3)
> > > {
> > > printf("ABC_Check = " + ABC_Check);
> > > }
> > >
> > > Obviously I keep getting Error 6 stating that in the
'if(expression)'
> > > statements expression cannot be an array.
> > > This raises a more generic question... is there a way of programming
> > > structures like these WITHOUT having to resort to using loops....?
> > >
> > > Any ideas appreciated.
> > >
> > > TIA
> > >
> >
> >  
> >
>


Reply via email to