PureBytes Links
Trading Reference Links
|
//cond=Ref(abs(O-C)<=0.05*(H-L),-1) AND Open < Ref(L,-1) ;//Yesterday
your condition AND today is GapUp.
buycond=Ref(abs(O-C)<=0.1*(H-L),-1) AND Open > Ref(H,-1) AND C > Open;
sellcond=Ref(abs(O-C)<=0.1*(H-L),-1) AND Open < Ref(L,-1) AND C < Open;
Filter=buyCond >0 OR Sellcond > 0;//only show those tickers that are
true
Buy=Buycond;//Placement of arrows
Sell=Sellcond;//Placement of arrows
AddColumn(buyCond,"buycond");AddColumn(Sellcond,"sellcond");
Brian wrote:
> Anthony,
>
> I found that the Gapup- missed many. I tried this
> cond=Ref(abs(O-C)<=0.1*(H-L),-1) AND (Open > Close);
>
> but it gave many false signals.
>
> I am trying to create a AFL that finds buys and sells using the
> premise that the following day is a gapup for a buy and a gapdown for
> a sell, but putting the words "Gapup and Gapdown" in the AFL misses
> many triggers. Is there a way to adapt the AFL to find the buys and
> sells with out missing so many stocks. The first day is a tight open
> close the next day is the trigger day looking for change in trend.
> For a buy it has to open up for a trigger to be correct, but the
> stock has to close that day above its open and for a sell to be
> triggered it needs to open lower than the previous day and finish
> lower than its open. I hope I am making sense on this description.
>
> Do you have any ideas?
>
> Thanks in advance,
> Brian
>
> --- In amibroker@xxxx, Anthony Faragasso <ajf1111@xxxx> wrote:
> > Brian,
> >
> > Is this what you are trying to do. Load into AA, apply to : all
> stocks,
> > range: N last quotations and n=1, click explore.
> >
> > cond=Ref(abs(O-C)<=0.05*(H-L),-1) AND GapUp();//Yesterday your
> condition
> > and today is Gapup.
> >
> > Filter=Cond >0;//only show those tickers that are true
> > AddColumn(Cond,"CondTrue");
> >
> > Anthony
> >
> > Brian wrote:
> >
> > > Hello,
> > >
> > > I am trying to get this AFL to find stocks that triggered this
> > >
> > > IIf(abs(O-C)<=0.05*(H-L),1,0);
> > >
> > > in the prior days trading session (yesterday) and todays open is a
>
> > > gap from yesterday.
> > >
> > > Any suggestions?
> > >
> > > Also since I updated to the latest version I noticed I have two
> chart
> > > problems
> > >
> > > 1) I lost all my watchlists. How can I protect my watch lists
> when I
> > > get the next version? (This only happens when I go from 3.7 to
> 3.8
> > > or 4.1 to 4.2- the beta versions 4.18.1 doesnt affect the
> watchlists)
> > >
> > > 2) I also notice that in tools> preferences>charting that I cant
> seem
> > > to change the number of bars/dates/quotations in a chart. It seems
>
> > > stuck with July 10 on the hardleft. I can use the zoom in & zoom
> out.
> > >
> > > Thanks in advance for any help,
> > > Brian
> > >
> > >
> > > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> > >
> > > Post AmiQuote-related messages ONLY to: amiquote@xxxx
> > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > >
> > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
>
> 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
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|