[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scanning for stocks not conditions...



PureBytes Links

Trading Reference Links

John,
What is the exact condition you want to explore ?
DT 
--- In amibroker@xxxx, John Nelson <trader@xxxx> wrote:
> 
> Right but this has the disadvantage of putting the search range 
into the 
> program code. Also it doesn't look like you can do this easily for 
an 
> interval within the price vector... only from the last day back. 
Oh 
> well, something we just have to live with I guess.
> 
> -- John
> 
> dtsokakis wrote:
> 
> >John,
> >Suppose your want to search a condition COND for the last x days.
> >You may use the exploration
> >
> >COND=C>Ref(C,-1);//your condition here
> >x=10;//the days you will search
> >Filter=Sum(COND,x)>=1;
> >AddColumn(C,"");//add any informative columns
> >
> >Set n last quotations n=1 and explore.
> >You will not see when COND was true, but each ticker will appear 
only 
> >once in your result list.
> >Dimitris Tsokakis
> > 
> >
> 
> 
> -- 
> _____________________________________________________
> 
> John T. Nelson
> Trader | Dreams Of Empire
> mail: | trader@xxxx
> web: | http://www.dreamsofempire.com/
> _____________________________________________________
> "Prediction is sexy... but strategy makes money"