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

Re: [amibroker] Oddity with ApplyStop



PureBytes Links

Trading Reference Links

Owen,
 
I didn't test this but I think that doesn't matter. I would guess your stop :Sell=Ref(Buy,-1); SellPrice=O; is viewed as an N-bar stop (but I could be wrong).
 
Did you try to set the N-bar stop: "has priority" and you still get the false result?
 
(see figure)
 
rgds, Ed
 
 
 
----- Original Message -----
Sent: Friday, December 17, 2004 7:57 PM
Subject: Re: [amibroker] Oddity with ApplyStop

ed nl wrote:

> "If two or more different stops are triggered on the VERY SAME bar
> then they are evaluated in this fixed order:
>
> Fixed Ruin stop (loosing 99.96% of the starting capital)
> Max. loss stop
> Profit target stop
> Trailing stop
> N-bar stop"

In this case, the profit target stop was the only one in use. The other
exits were hand coded.

Thanks for the thought, though, and the link.  I'd missed the note on
the order in which stops are evaluated, and this is very much worth knowing.

Owen


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Attachment: bset.PNG
Description: PNG image