PureBytes Links
Trading Reference Links
|
Hello,
ApplyStop is does not return the array that could be used
to plot the line. ApplyStop sets some internal state variables
that backtesting engine uses internally to manage built-in stops.
You can "emulate" the trailing stop line in plain AFL by using HighestSince function:
Buy = Cross( MACD(), 0 );
Sell = 0;
Plot( Close, "Price", 1, 64 );
TrailStop = 0.9 * HighestSince( Buy, High );
Plot( TrailStop, "10% trail stop", 1 );
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: "Stephane Carrasset" <nenapacwanfr@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 21, 2001 11:24 AM
Subject: [amibroker] Apply stop c++
> Tz,
>
> could you please, give me (us) the c++ code for the applystop
> I would like to create a plugin dll to plot the applystop ( or a
> volatility trailing stop) as a line
> on a chart
>
> stephane
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|