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

Re: [amibroker] Using a watchlist for backtesting



PureBytes Links

Trading Reference Links

Use
_N(List = CategoryGetSymbols(categoryWatchlist,10));

for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ ) 
{ 
//variable sym contains the name of the current ticker

rest of your code

}

The first line reads the watchlist you want (#10 in this case)
The loop extracts each symbol in sequence.
----- Original Message ----- 
From: "amickan1958" <amickan@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, April 06, 2007 7:20 PM
Subject: [amibroker] Using a watchlist for backtesting


> Hi,
> 
> I'm pretty new at AmiBroker so please excuse this if it's a basic 
> question.
> 
> I have written a system, and it backtests ok. But I want to back test 
> it with the same watchlist every time. But when I swap between systems 
> (AFLs), the watchlist stays the same in the form.
> 
> Is there an AFL command I can use in each system to tell it which 
> watchlist (or stocklist or tickerlist) to use?
> 
> Many thanks
> 
> Andrew
> 
> 
> 
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 


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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/