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

[amibroker] Yahoo Symbol Please



PureBytes Links

Trading Reference Links

Graeme,
Explore for the n=1 last quotations with

Filter=1;
AddColumn(Sum(Cross(C,MA(C,150)),10)>0,"");

and you will have the stocks that , at least once, crossed their 
150MA the last 10 bars.
Dimitris Tsokakis

--- In amibroker@xxxxxxxxxxxxxxx, "graeme_oswin" <goswin@xxxx> wrote:
> Jayson,
> 
> This is exacly what had me confused.  I was trying to find only 
those 
> stocks that had recently (within the last 10 days) crossed above 
the 
> 150 moving average.  Unfortunately the exploration was turning up 
> both recent and ages ago 150 day MA crosses.
> 
> I was scanning for the condition being met on the current bar.
> 
> Regards,
> 
> Graeme Oswin
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > Graeme,
> > 
> > I think your filter is is limiting Cond2 bars to a cross less 
than 
> 10 days
> > ago therefore those stocks who crossed "Ages" ago will be skipped 
> all
> > together.......
> > 
> > The other question would be how many days are you scanning for?
> > 
> > Regards,
> > 
> > Jayson
> > 
> >   -----Original Message-----
> >   From: graeme_oswin [mailto:goswin@x...]
> >   Sent: Wednesday, May 12, 2004 8:05 AM
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Subject: [amibroker] AFL Logic Question
> > 
> > 
> >   Fristly thank you to all those who have helped in my developing
> >   understanding of AFL programming.
> > 
> >   Secondly what is wrong with the logic of the following code:
> > 
> >   Cond1=MA(C,15)>MA(C,150);
> >   Cond2=BarsSince(Cross(C,MA(C,150)));
> >   Buy=Cond1 AND Cond2<10;
> >   Filter=Cond1 AND Cond2<10;
> >   AddColumn(Cond2,"Cond2",1.2);
> > 
> >   Simply I am attempting to discover stocks that have recently 
(in 
> the
> >   last ten days) crossed above their 150 moving average and the 
15 
> day
> >   moving average is currently above the 150 day moving average.
> > 
> >   When I scan or filter I find some stocks that meet these 
criteria
> >   while others have been able their 150 MA for ages while 
reporting 
> 0
> >   for Cond2.
> > 
> >   What have I missed in terms of the logic?
> > 
> >   Regards and sincere thanks,
> > 
> >   Graeme Oswin
> > 
> > 
> > 
> >   Send BUG REPORTS to bugs@xxxx
> >   Send SUGGESTIONS to suggest@xxxx
> >   -----------------------------------------
> >   Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> >   (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> >   --------------------------------------------
> >   Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > 
> > 
> > 
> > ------------------------------------------------------------------
--
> --------
> > --
> >   Yahoo! Groups Links
> > 
> >     a.. To visit your group on the web, go to:
> >     http://groups.yahoo.com/group/amibroker/
> > 
> >     b.. To unsubscribe from this group, send an email to:
> >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > 
> >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of 
> Service.



------------------------ 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
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/