| 
 PureBytes Links 
Trading Reference Links 
 | 
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/ 
> > 
> > 
> >
 
 |