PureBytes Links
Trading Reference Links
|
Stephane,
Note that Equity( 1 ) call not always allows to visualise stop points but also removes
all excessive buy signals.
Also I don't think that using ApplyStop is hard:
ApplyStop( stopTypeTrailing, stopModePercent, 10, True );
that all you need to type to add 10% trailing stop.
but... yes I plan to add more functions that will handle more sophisticated stops.
Best regards,
Tomasz Janeczko
amibroker.com
PS. The original example shown below should have Equity( 1 ) instead
of simple Equity() call - sorry for my mistake.
----- Original Message -----
From: "nenapacwanfr" <nenapacwanfr@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, July 24, 2002 5:20 PM
Subject: [amibroker] Re: simple ApplyStop AFL problem
> Hi Tomasz,
> Ok the equity can give where are the bars stop of applystop.
> But,
> Applystop are not easy to use, do you plan to improve them with a
> Dialog Box where we can choose the stoploss, trailingstop, target and
> easily visualize where are the bars stop with a simple Afl code .
> like the rembuy.dll, because all excessive buy signals are removed,
> we can use valuewhen and highestsince function.
>
> entryprice=valuewhen(buy,entryprice);
> stoploss = valuewhen(buy, stoploss);
> trailingstop=highestsince (buy,trailingstop);
> profit= 3*entryprice - 2*stoploss;// 2 Risk
>
> Stephane
>
> Or I need to learn template, class and Cie
>
>
> >
> > Use the following solution:
> >
> > ApplyStop here
> >
> > .. your rules here
> >
> > Equity(); // this call evaluates stops
> >
> > // from now on you can find out on which bars stops where triggered
> > // now sell array contains
> > // 1 - for normal exit
> > // 2 - for max. loss stop
> > // 3 - for profit target
> > // 4 - for trailing stop
> >
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "sidleysh" <steves@xxxx>
> > To: <amibroker@xxxx>
> > Sent: Wednesday, July 24, 2002 3:31 PM
> > Subject: [amibroker] simple ApplyStop AFL problem
> >
> >
> > > How do detect in AFL whether a stop has been triggered? Because
> > > ApplyStop returns nothing, I cannot use it in an iif statement.
> > >
> > > Any ideas?
> > >
> > > steve s
> > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|