Try this:
target = 0.0008;//Optimize( "target", 0.0008, 0.0006, 0.0020, 0.0001 );
stoploss = 0.0030;//Optimize( "stoploss", 0.0030, 0.0020,
0.0040, 0.0001 );
trail = 0.0035;//Optimize(
"trail", 0.0035, 0.0025, 0.0050, 0.0001 );
ApplyStop (1, 2, target, True
, 2);
ApplyStop (0 ,2, stoploss, True,
2);
ApplyStop (2, 2, trail, True, 2);
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of steinington
Sent: Saturday, 8 October 2005
7:49 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker]
optimising stops
how can I optimise maximum loss stop, profit target
and trailing stop? There seems to be no setting for this? Do I have to
overide the backtester settings by coding them or do they already exist as
tokens that can be called from afl?
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
SPONSORED LINKS
YAHOO! GROUPS LINKS