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

[amibroker] Advance Decline Line



PureBytes Links

Trading Reference Links

I am trying to use the addtocomposite to create an Advance Decline 
line for each sector.

I have the following code but this does not create a cumulative line 
which is what I am trying to do.

//creates advance /decline by sector composite

up=C>Ref(C,-1);
dn=C<Ref(C,-1);
ADln=(up-dn);
Ad="~AD"+SectorID(1);
AddToComposite(ADln,AD,"C");
Buy=Sell=Short=Cover=0;

I tried using Cum(ADln); etc but I am not really sure how all of this 
works together yet. Still a newbie grasping for a clue....

Thanks

DM





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/