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

Re: [amibroker] Re: Margin and PositionSize in portfolio backtester



PureBytes Links

Trading Reference Links

Hi,

I'd like to setup a composite of the % advancers (& decliners 
later)  ...any idea how please? ie:

% advancers = advancers / total (active) stocks x 100

For starters:

Adv=C>Ref(C,-1);
AddToComposite(Adv,"~Adv","C");

I need to add to the above the total stocks. Is there a way to count 
them, would you need to run another scan first to get the total stock or 
could it be done within one scan?

Cheers Glenn


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 

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/