Hi All,
I calculate several composite indicators against several indices.
Example
NDXcomposite.afl.....
//Advance-Declining Volume
Avol=IIf(C>Ref(C,-1),V,0);
Dvol=IIf(C<Ref(C,-1),V,0);
AddToComposite( Avol,"~Avol"+"NDX--X","X");
AddToComposite(Dvol,"~Dvol"+"NDX--X","X");
This would be run against a watch list containing the NDX components.
Now if I try to combine all the composite AFL's into one by adding
this statement:
sym = WriteIf(InWatchList(7), "DJ-15", WriteIf(InWatchList(8), "DJ-
20", WriteIf(InWatchList(9),"DJ-30", WriteIf(InWatchList(10),"SP-500",
WriteIf(InWatchList(11),"MID--X", WriteIf(InWatchList(12),"SML--X",
WriteIf(InWatchList(13),"RUI-X", WriteIf(InWatchList(14),"RUT-X",
WriteIf(InWatchList(15),"NDX--X","")))))))));
AddToComposite( Avol,"~Avol"+sym,"X");
AddToComposite(Dvol,"~Dvol"+sym,"X");
If I run this against the same watch list data I get different
results on some indices. Anyone have any idea what I am missing and
what is happening?
Thanks In Advance for any help
Bill
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 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:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/