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

Re: [amibroker] Example of a VB User defined function...



PureBytes Links

Trading Reference Links

Hi David,

Remember to UNWRAP the lines when you copy the script from
the e-mail. VBScript has no special line termination mark (as JScript and AFL have - semicolon)
and line breaks are important.

Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com


----- Original Message ----- 
From: "David Holzgrefe" <dtholz@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, May 30, 2001 8:58 PM
Subject: Re: [amibroker] Example of a VB User defined function...


> Thanks Steve, I must be doing something wrong keep getting errors
> could you please include a description on how to use the script
> is there something else that should be include with the script eg other afl
> info
> 
> 
> Thanks David
> ps im a code dummy so use the KISS format pls
> 
> ----- Original Message -----
> From: "Steve" <slwiserr@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, May 31, 2001 4:49 AM
> Subject: [amibroker] Example of a VB User defined function...
> 
> 
> > EnableScript("vbscript");
> > <%
> > close = AFL( "close" )
> > factor = 0.09
> > var1=close
> > SetValue Close
> >
> > Function SetValue(Close)
> > for i = 1 to UBound( close )
> > var1( i )= factor * close( i ) + (1 - factor) * var1( i -
> > 1 )
> > next
> > end function
> >
> > AFL.Var("graph0") = close
> > AFL.Var("graph1") = var1
> > %>
> > WriteVal( graph1 );
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>