A Beauty Graham! Thanks for that!

As in those 5 days of exploration  several instances of Buy ==1 can occur for a 
given symbol. These will all show in the AA window on their respective date.  

It would be perfect to filter out these excessive signal. Using the following 
Filter = ExRemSpan( Buy, 4) ;

This works, only a few valid results(symbols) go missing!

Any ideas on this, or is there a better way to do this?

Thanks,

Adrian



--- In [email protected], Graham <kavemanpe...@...> wrote:
>
> try this
> 
> if( lastvalue( sum( buy,5)  )  )   CategoryAddSymbol( "",
> categoryWatchlist, 58 );
> 
> 
> -- 
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
> 
> 
> 
> 
> 2009/7/26 tayamaan <tayam...@...>:
> > Hello all, by coincidence I was working on the same issue and can't seem to 
> > get my head around it why this doesn't work.
> >
> > This is what I do:
> >
> > Simple buy statement:
> >
> > Buy = Cond1 AND Cond2 AND Cond3;
> >
> > Then I wish to check the last five bars if the buy statement is true and 
> > write the tickers to a watch list.
> >
> > MyPeriod = 5;
> >
> > for( i = 1; i < MyPeriod AND i < BarCount; i++ )
> > {
> >        if( Buy[i] )
> >        {
> >        CategoryAddSymbol( "", categoryWatchlist, 58 );
> >        }
> > }
> >
> > This adds nothing at all to the watchlist. Where does my logic go wrong on 
> > this one?
> >
> > Thanks
> >
> >
>


Reply via email to