ApplyStops work correctly. There are several options you should verify in help.
Slippage cannot be accounted for if it drops in the same day. You would need intraday for this. Still prices can drop through your stops even with minute data, especially if they are not particularly liquid. -- Terry -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of thecoolestdude1369 Sent: Tuesday, December 19, 2006 14:11 To: [email protected] Subject: [amibroker] Re: apply stop?.... thx.... follow up-- when i backtest the results of the backtest aren't correct. for instance if i have a 10% max loss stop the backtest results are still showing the position lost more than that and just put a notation that say (max loss). i wanted it to calculate the loss at 10% if it hit the max stop loss. is this something that you can't do in ab or is it because i'm using yahoo eod data or am i missing a variable. thx again j --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > Oddly, I have found it doesn't matter where it is PROVIDED it is on it's own > line. So your 2nd example would be wrong. I usually put it in above the Buy > conditions as in your first example. > -- > Terry > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf > Of thecoolestdude1369 > Sent: Tuesday, December 19, 2006 10:20 > To: [email protected] > Subject: [amibroker] apply stop?.... > > where do i put the applystop(). in the line before the buy and sell > lines or in the sell line after sell info? > > for instance... > > applystop(); > > buy =parameters > sell =parameters > > or > > buy = parameters > sell = parameters or applystop() > > thx > j > 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 Yahoo! Groups Links
