PureBytes Links
Trading Reference Links
|
Thanks, Tomasz. One more question - I'm having trouble getting these
functions to work in another scripting language:
Stock.WatchListBits (long) - each bit 0..31 represents assignment to
one of 32 watch lists to add a stock to nth watch list write (JScript
example):
Stock.WatchListBits |= 1 << nth;
Stock.WatchListBits2 (long) - each bit 0..31 represents assignment to
one of watch lists numbered from 32..63 to add a stock to nth watch
list write (JScript example):
Stock.WatchListBits2 |= 1 << ( nth - 32 );
How would you, say, add a stock to watchlist number 2 in VBScript or Perl?
I'm not familiar with the JScript notation above. I've tried this in
Perl but I get "Invalid number of parameters".
$stock->WatchListBits(1 | 2);
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> wrote:
>
> Hello,
>
> Things like that should be done from EXTERNAL script (Windows
Scripting Host).
> First do your watch list stuff, then run backtest. All automatically
> controlled by external script that you would launch by double click
on icon.
> http://www.amibroker.com/guide/objects.html
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "davemabe2000" <davemabe@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, January 08, 2008 6:08 PM
> Subject: [amibroker] Execute AFL Once Per Backtest (Not Once Per Symbol)
>
>
> > Is there a way to have some AFL code execute once just before any
> > backtesting is performed? I've got some AFL that empties a watchlist
> > and then fills it with just the symbols I'm testing with (which is
> > different for each backtest).
> >
> > My AFL works ok, but after looking at DebugView the emptying and
> > populating of the watchlist is happening once per symbol, so it ends
> > up executing this multiple times.
> >
> > Is there a way to use the COM model to execute some AFL code to make
> > the watchlist modifications (but not actually perform a backtest)?
> >
> >
> >
> > 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/
|