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

Re: [amibroker] Sar in AFL question



PureBytes Links

Trading Reference Links

Hello,

Please note that the notation = 0.02 means default values
of parameters (used if no arguments are supplied) so

SAR() is equivalent to SAR( 0.02, 0.2 )

If you want to pass the parameters use the following

accel = 0.02;
maxaccel = 0.2;

buy = cross( close, sar( accel, maxaccel ) );


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


----- Original Message -----
From: <sgregory2001@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 30, 2001 4:15 PM
Subject: [amibroker] Sar in AFL question


> I am new to Ami and like it alot but have a problem when starting to
> use AFL. Why will this not work for SAR: "buy = cross(close, sar(
> accel = 0.02, max = 0.2 ) );"
>
> I want the parameters in the script so I can change them later.
> I get a syntax error after the = on the max parameter.
>
> Any help appreciated and thanks to the author for a really useful
> program.
>
> Regards,
> Steve
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>