PureBytes Links
Trading Reference Links
|
Sorry I wasn't clearer. I know code doesn't run for stocks outside the test.
But if you had access to the total universe of stocks in the test, you could
calculate any stats you wanted on that population before processing began
(Status("StockNum") == 0), and use that info to score individual stocks. For
example, you could calculate their average price beforehand, and filter out
or downgrade individual stocks below that. You could also count the number
of stocks being processed, and so on. Top N anythings on the stocks being
processed are possible too I think, without requiring that proicessing run
on a watchlist, one whose number I know.
Make sense?
Dave
> > A more flexible thing I'd love to see is a way to get the list
> of all stocks
> > in the current backtest or exploration, something like
> > Status("IssuesInTest"), or a reserved variable, maybe
> IssuesInTest. Those
> > would be very useful in any case, for calculating averages or other
> > quasi-composites on the stocks being tested.
>
>
> But... in AA window your code is executed ONLY for stocks that
> are "InTest". Symbols not included in "apply to" group are SKIPPED
> automatically and your code is never executed on such stocks.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
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/
|