PureBytes Links
Trading Reference Links
|
Hi Thanks for that , but I would like to use AFL functions while I am in a VBScript loop.... while it is looping through the bars, I want to use the _TRACE function and throw some debug out to the DebugView application... Can I call AFL functions while INSIDE VBScript ? I might want to call other AFL functions too. THanks.
Mark Fishburn Clarus Innovation Inc. 22 Borland Drive Guelph, Ontario N1G 5B6 519-829-9595
-----amibroker@xxxxxxxxxxxxxxx wrote: -----
To: amibroker@xxxxxxxxxxxxxxx From: Graham <kavemanperth@xxxxxxxxx> Sent by: amibroker@xxxxxxxxxxxxxxx Date: 01/29/2006 04:34PM Subject: Re: [amibroker] Can you call AFL functions while in VBScript ? If so, how ?
Pre-define a variable for the function outside the script area
an example I did for jscript use years ago before AFl had direct loop capabilities. I defined Close in this case just to round the values to nearest whole tick value (for ASX at tha time) and called it as an array into script area. It could be any function. This is for jscript but think vbscript would be similar
Close = IIf( C<10, round(C*10)/10, IIf( C>=10 AND C<50, int(C) + round(round(frac(C)*10)/5)*5/10, int(C)));
EnableScript("jscript"); <% Close = VBArray( AFL( "Close" ) ).toArray();
-- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://e-wire.net.au/~eb_kavan/ab_write.htm
On 1/30/06, clarusinnovation <mfishburn@xxxxxxxxxxxxxxxxxxxx> wrote: > Hi, > > Is it possible to call AFL functions while in a VBScript area ? > > EnableScript("vbscript"); > > <% > > ' this is a sample > _TRACE( "Hello World" ) > > %> > > is there a way I can do that ? > > Thanks. > > Mark > > > > > > > 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 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 other support material please check also:
http://www.amibroker.com/support.html
YAHOO! GROUPS LINKS
|