PureBytes Links
Trading Reference Links
|
I think you need to break the program into 2 parts.
part 1 - complete creation of ATCs.
part 2 - process ATC and plot
----- Original Message -----
From: "smithkt9675" <SmithKT1@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, October 06, 2007 8:04 PM
Subject: [amibroker] Help with AD Ratio
> Hello, I'm trying to plot the Advance/Decline Ratio so that advancers
> show up 3:1 for example, and decliners show up as -3:1, so that
> declining days appears as a negative breadth thrust and advancers
> positive...all along a zero line in histogram form. The formula
> looks right, but when compared to a source I'm trying to replicate
> the figures look off. Please advise if I should tweak the formula.
> I'm using Yahoo data. Thank you very much.
>
> symz="~Advancers";
> symy="~Decliners";
> Advance=Close>Ref(Close,-1);
> Advance1=Advance>0;
> Decline=Close<Ref(Close,-1);
> Decline1=Decline>0;
> IIf(Advance1>0,AddToComposite(Advance1,symz,"C"),0);
> IIf(Decline1>0,AddToComposite(Decline1,symy,"C"),0);
>
> AD1=Foreign("~Advancers","C");
> DC1=Foreign("~Decliners","C");
>
> ADRatio= IIf(DC1>AD1,(DC1*-1)/AD1, AD1/DC1);
>
> Buy=0;
> Filter = 1;
>
> GraphXSpace = 2;
> Plot(ADRatio,"AdvanceDeclineRatio",colorDarkBlue,styleHistogram);
>
> Plot(0,"",colorBlack);
> Plot(3,"",colorGreen);
> Plot(-3,"",colorRed);
>
> Title="Advance/Decline Ratio";
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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/
|