--- In [email protected], Nick Robinson <[EMAIL PROTECTED]> wrote:
>
> I find that stocks no longer trading but have had a "buy", but no
"sell"
> signal remain as "open long" for the entire backtest, thus preventing
> other buys and distorting the exposure and RAR results. Is there a way
> around this?
What I've done is to add the following to my sell condition:
//
// Using 1 bar sell delay
//
tradeDelay = 1;
Sell = RegularSellCondition OR
( BarIndex() + tradeDelay ) >= LastValue( BarIndex() )
Tuzo