PureBytes Links
Trading Reference Links
|
Correct method for using the applystop is
sell = 0; ApplyStop(2,1,3,1,False,0);
For stop loss type it is 3% below entry price
-- Cheers Graham AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements http://www.aflwriting.com
On 21/05/07, Ed Middleton <jjj_98@xxxxxxxxx> wrote:
Sammi,
My understanding is if you check "Activiate Stops
Immediately" it should work. The only problem I've found is if you
enter on a bar where if the low of the bar is more than 3%
below the high of that bar that you will be stopped out on that first bar, even
if, you entered on the close of the bar.
Fred
----- Original Message -----
Sent: Sunday, May 20, 2007 7:40 PM
Subject: [amibroker] Backtest error with
trailing stop
When I backtest a system with the only sell rule of a trailing stop
like this: sell = ApplyStop(2,1,3,1,False,0); (= 3% trailing
stop)
I only get that all trades are immediately stopped out at the
entry price. In settings, "Activate Stops immediately" is NOT
checked.
How can I tell AMI to use the trailing stop correctly as 3%
trailing stop?
Thanks, Sammi
__._,_.___
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
__,_._,___
|