PureBytes Links
Trading Reference Links
|
This
will step through your stocks but note that this may take a long time to execute
if you have a lot of stocks in your watchlists! However, to get Backtest results
you need to use the AA Optimizer; it will automatcally Backtest all stocks in a
watchlist. You can Automate sequential backtests also, see Help on Optimizing
and Automation.
<FONT face=Arial color=#0000ff
size=2>
best
regards,
<FONT face=Arial color=#0000ff
size=2>herman
FirstWatchList = 0<FONT
size=2>;LastWatchList = 2<FONT
size=2>;for( w
= FirstWatchList; w < LastWatchList ; w++ ){<FONT
face="Lucida Console" size=2>list = <FONT face="Lucida Console"
color=#0000ff size=2>GetCategorySymbols<FONT face="Lucida Console"
size=2>( categoryWatchlist, w<FONT
face="Lucida Console" size=2>);<FONT face="Lucida Console"
color=#800000 size=2>for(
n=0<FONT
face="Lucida Console" size=2>; ( <FONT
face="Lucida Console" size=2>Ticker <FONT
face="Lucida Console" size=2>= <FONT
face="Lucida Console" color=#0000ff size=2>StrExtract<FONT
face="Lucida Console" size=2>( List, n <FONT
face="Lucida Console" size=2>)) <FONT
face="Lucida Console" size=2>!= <FONT face="Lucida Console" color=#ff00ff
size=2>""; n++)<FONT
face="Lucida Console" size=2>{<FONT color=#0000ff
size=2>SetForeign( Ticker );<FONT color=#0000ff
size=2>Plot( C, <FONT color=#ff00ff
size=2>"", 1<FONT
size=2>, 1<FONT
size=2>|styleNoLabel ); // Test
Only}<FONT
size=2>}
<FONT face=Tahoma
size=2>-----Original Message-----From: jbusse0
[mailto:jbusse0@xxxxxxxxx]Sent: Tuesday, July 27, 2004 4:42
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Newbie questionLooking for some direction on how I
would implement a straight-forward looping procedure in AFL. Suppose I
have several watchlists and each watchlist contains a different number of
stock tickers. Is there a way to automatically (rather than manually
starting the program for each watchlist) begin with the first watchlist,
run some analysis on each ticker, report some backtesting results, then
move on to the subsequent watchlists one by one and do the same analysis?
I don't understand how to refer to the watchlists and also how to run
the analysis on a different number of tickers for each watchlist.
In my non-AFL mind, I'm thinkingi=1 to numwatchlists
j=1 to numstocks in watchlist(i) Analyze
stock j j=j+1 end report
backtest results i=i+1endCheck
AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|