| 
 PureBytes Links 
Trading Reference Links 
 | 
Group;
I am having a time trying to get this statement working:
       in= Sum(Ref(Buy,-1),120)==0 AND Ref(ina,-2) AND Sum(Out,3)==0;
It keeps returning true even when the component logicals are false.
The following code should create only one buy signal as
the second should not happen since there was already a but in the last
120 minutes.
But, two "buy" signals are created.
This can be demonsrated by pasting into the AA window and run on one 
stock...
Is this a Bug??  Any help would preserve my sanity...
            Thanks!
                     Walt
BTW: This is on a 1 minute chart...
//*************************************************
Buy=0;
Sell=0;
ina=(TimeNum()>94500 AND TimeNum()<100000)
OR
(TimeNum()>104500 AND TimeNum()<110000);
Out=TimeNum()>101500 AND TimeNum()<103000
OR
TimeNum()>111500 AND TimeNum()<113000;
in= Sum(Ref(Buy,-1),120)==0 AND Ref(ina,-2) AND Sum(Out,3)==0;
 
Buy=ExRem(in,Out);
Sell=ExRem(Out,in);
NumColumns=3;
Filter=Buy;
Column0=Buy;
Column0Name= "Buy";
Column1=Sum(Ref(Buy,-1),120)<1;
Column2= in ;
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 
 |