PureBytes Links
Trading Reference Links
|
Hi,
As for built-in trailing stops - it was disabled
in all pre-3.59 versions,
and finally replaced by profit target stop in 3.59
beta.
But.. built-in trailing stop will come back soon
.
Best regards,Tomasz Janeczko===============AmiBroker - the
comprehensive share manager.<A
href="">http://www.amibroker.com
<BLOCKQUOTE dir=ltr
>
----- Original Message -----
<DIV
>From:
<A title=dimyon@xxxx
href="">dimyon@xxxx
To: <A title=amibroker@xxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, May 24, 2001 4:26
PM
Subject: Re: [amibroker] trailing
stop
thanks. plus I'll try to determine the "10", the right period.
David Holzgrefe wrote:
Hi Isaac have a look at this and seeif its
close to what your after ? <FONT
size=-1>/* trailing stop loss <FONT
size=-1>By David Holzgrefe <FONT
size=-1>24.05.2001 */ <FONT
size=-1>buy =cross(close,sar()); <FONT
size=-1>best=hhv(close,10); //still no good cos 10 may not bethe
right period <FONT
size=-1>stopLoss = (close < best * 0.97); // 3% drop from
highest 10 day hi sell =
stoploss; buy
= exrem(buy, sell); sell =
exrem(sell, buy); Regards
David
<BLOCKQUOTE dir=ltr
>
----- Original Message -----
<DIV
>From:
<A title=dimyon@xxxx
href="">dimyon@xxxx
To: <A
title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, May 24, 2001 9:45
PM
Subject: Re: [amibroker] trailing
stop <FONT
size=+1>Yes, you are right.
Meanwhile,
I think I've solved my problem. Check this out,
please:
enter =
valuewhen( buy, ref(open,1) ,1);
<FONT
size=+1>days=barssince(buy); <FONT
face="Comic Sans MS"><FONT
size=+1>writeval(days);
<FONT
size=+1>time=lastvalue(days); <FONT
face="Comic Sans MS"><FONT
size=+1>writeval(time);
<FONT
size=+1>best=hhv(close,time); <FONT
face="Comic Sans MS"><FONT
size=+1>writeval(best);
sell
= close/best<0.85 and days>3 or
close/enter<0.6;
<FONT
size=+1>Isaac.
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of
Service.
|