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

[amibroker] Re: Buy arrows, but no sell arrows.



PureBytes Links

Trading Reference Links

Yes, and that was the problem, thank-you, sir.:)

This is why I always take sides with Tomasz when a user brings up
"problems" in AB.:)



Sebastian


--- In amibroker@xxxxxxxxxxxxxxx, "Duke Jones, CMT" <Duke@xxx> wrote:
>
> One thought....Is your GSPC symbol supposed to have "^" in front?
>
> Regards,
>
> Duke Jones, CMT
>
>
> > -------Original Message-------
> > From: sebastiandanconia sebastiandanconia@xxx
> > Subject: [amibroker] Buy arrows, but no sell arrows.
> > Sent: 01 Mar '07 01:28
> >
> > This piece of code plots buy/sell arrows on days of extremely
one-sided
> > volume breadth. "^NYSEBR" is a dummy ticker with breadth data.
"Cond2A"
> > is a filter that excludes low-volume extreme days.
> >
> > "Cond2A" filters out the low-volume days as it should on the "Buy"
days,
> > but it filters out ALL of the "Sell" days, with no sell arrows
displayed.
> > Removing "AND Cond2A" from the "Sell" condition restores the sell
arrows,
> > but without filtering them. Can anyone tell me why and how to fix
it?
> > Based on my knowledge of AB it ought to work, but just isn't for a
reason
> > I can't figure out.
> >
> > TIA,
> >
> > Sebastian
> >
> >
> > //Shows all 90% up/down or double 80% up volume days.
> >
> > SetBarsRequired( 100000, 100000 ); // require all past and all
future bars
> >
> >
> >
Cond1=Foreign("^NYSEBR","V")/(Foreign("^NYSEBR","V")+Foreign("^NYSEBR","\
I"));
> >
> >
> >
Cond2=Foreign("^NYSEBR","I")/(Foreign("^NYSEBR","V")+Foreign("^NYSEBR","\
I"));
> >
> >
> > Cond2A=Foreign("GSPC","V",1)>EMA(Foreign("GSPC","V",1),50);
> >
> > Buy=Cond1>.89 OR Cond1>.79 AND Ref(Cond1,-1)>.79 AND Cond2A;
> >
> > Sell=Cond2>.89 AND Cond2A;
> >
> > shape=BUY*SHAPEUPARROW+SELL*SHAPEDOWNARROW;
> >
> >
PlotShapes(shape,IIf(BUY,COLORSEAGREEN,COLORRED),0,IIf(BUY,LOW,HIGH));
> >
> >
> >
>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/