PureBytes Links
Trading Reference Links
|
You CAN do something like this: (Psuedo code)
Watchlistnbr = param(...);
// retrieve comma-separated list of symbols in watch list
list = GetCategorySymbols( categoryWatchlist, Watchlistnbr );
// get one symbol at a time and process using your "system"
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
SetForeign(Sym..)
Your formula here
}
you would run this against a single ticker but it would process your
watchlist.
d
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ron Rowland
> Sent: Tuesday, October 09, 2007 5:26 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Specifying Watchlist from AFL
>
> I was hoping to find a way to easily set/specify the Watchlist to be
> used by a given AFL. My preferred approach is "A" blow, but it does
> not appear to a valid/supported one.
>
> A) The SetOption command allows me to override/set about 26
> parameters used/required by the AA window. However, the
> documentation does not show a way to specify which Watchlist/Filters
> to use. I would like to be able to simply say SetOption
> (WatchlistName, "MyWatchList");
>
> B) I have searched this group and it appears that this task can be
> accomplished using the "Automate a Backtest and Export the Tradelist"
> script that Dingo wrote back in April 2004.
>
> C) I also assume that it can be accomplished in the CBT by enabling
> the Analysis Object and using the Filter Property.
>
> D) I think it might also be possible using a brute-force approach by
> running all of my AFLs from a Watchlist named "UseThisOne" and then
> each AFL would use CategoryRemoveSymbol to clear out "UseThisOne" and
> then rebuild it by using CategoryGetSymbol from
> Watchlist "TheOneIReallyWant" and then have CategoryPutSymbol each
> symbol into "UseThisOne". (Brute force and very ugly approach).
>
> Since my preferred approach "A" is not a valid one, does anyone have
> an opinion on which approach is preferred? Any other way of
> accomplishing this task?
>
>
>
>
> 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/
|