PureBytes Links
Trading Reference Links
|
hi again ok I know what you mean now
..
no doubt someone in the group or TJ will have an
answer
I guess it would have to have some thing to do
with hhvhars() or <FONT
color=#ffffff>hhv( ARRAY,
periods )
what ever you use I think you would need to define the periods so if the
trade runs out side the period ?
check to online help
you could try using this Guru
commentary using the atr as a starting point
but it wont help you in the auto analysis window
/* Chandelier stop By David
Holzgrefe7.05.2001*/
"\n Chandelier stop is a trailing stop that uses
the true average range atr(10) in this case * 2.0"+" The length of the
multiplier will impact on the profitability. Obviously, a larger multiplierwill
let larger trends develop but has the potential to leave larger profits on the
table. A smaller multiplier will leave less profit on the table but increase
whipsaw." ;"";
writeval(atr(10))
+ " ATR(10) Value"; // change periods to
suit
chandler=atr(10) *2.0; // Change the
multiplier to suit writeval(chandler) + " Chandelier
value";stopval= high-chandler;writeval(stopval) + "
Chandelier stop";writeval(high) + " Todays High ";/*buy=
0;sell = stopval;*/
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=dimyon@xxxx
href="">dimyon@xxxx
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, May 24, 2001 9:05
PM
Subject: Re: [amibroker] trailing
stop
Hi
David,<FONT
color=#000099>
Thank you for
your kind and prompt answer. It is most helpful.<FONT
face="Comic Sans MS">
Nevertheless,
I'm still looking for a trailing stop, as a percentage from peak of
gain.<FONT
size=+1>
Is there a way
to activate the built in trailing stop?<FONT
face="Comic Sans MS">
Thanks
again,<FONT
color=#000099>
Isaac
Kalisky.
David Holzgrefe wrote:
Hi Isaac try add this to your code
It from a piece of code submitted to the group by ralf w it
calculates 8% profit from buy or 3% stop loss
Hope it helps
Regards David
/* referencing buy price by ralfw@xxxx */
buyprice = valuewhen( buy, ref(open, 1), 1);
minGrowth = (close > buyprice * 1.08); stopLoss =
(close < buyprice * 0.97);
----- Original Message ----- From: <dimyon@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx> Sent: Thursday, May 24, 2001
6:39 PM Subject: [amibroker] trailing stop
> Hi, > > Can anyone tell me how to activate the
trailing stop on automatic > analysis, settings? > >
Thanks, > > Isaac.
Hmm rambling on a bit sorry i should learn to
shut up if i dont know the answer :)))
Regards David
|