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

Re: [amibroker] Can you call AFL functions while in VBScript ? If so, how ?



PureBytes Links

Trading Reference Links

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


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

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