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

[amibroker] Re: Using a watchlist for backtesting



PureBytes Links

Trading Reference Links

Thanks for your reply, but I think that's way too deep for me at the 
moment. I have a very easy system coded - no for loops etc. Just set 
my trigger and gates, initialequity etc, and backtest it. I have some 
explore columns set up but thats about it. I tried this, and 
substituted a test watchlist with one ticker in it for "list", ie

for( i = 0; ( sym = StrExtract( "AGK", i ) ) != ""; i++ )

and wrapped the system between the {}.

The backtest runs but still uses the full list I've selected in the 
form.

Andrew


--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> 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@xxx>
> 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/