The original strat has
exit after 25 bars so this should be retained for both longs and shorts when improve by
add, but it isn't being retained for longs....
//--------------------------------------------------------------------
// Trading rule: Long entry (On Every Tick)
//--------------------------------------------------------------------
if ((LongEntrySignal
and Not ShortEntrySignal)
and Not LongExitSignal)
{
// Action #1
Open Long order at (HeikenAshiClose(Main chart)[1] + (0.20 * MTATR(Main chart,16)[1])) Limit;
Order valid for 42 bars;
Duplicate trades: disabled;
Replacing pending orders: allowed;
Stop Loss = 1.1* ATR(11);
}
//--------------------------------------------------------------------
// Trading rule: Short entry (On Every Tick)
//--------------------------------------------------------------------
if ((ShortEntrySignal
and Not LongEntrySignal)
and Not ShortExitSignal)
{
// Action #1
Open Short order at (HeikenAshiClose(Main chart)[1] - (0.2 * MTATR(Main chart,16)[1])) Limit;
Order valid for 42 bars;
Duplicate trades: disabled;
Replacing pending orders: allowed;
Stop Loss = 1.1* ATR(11);
Exit After 25 bars;
}