--- In [email protected], "Pmxgs" <pm...@...> wrote:
>
> Hello,
>
> I also had the same issue and I found that if you choose
> SetBacktestMode( backtestRegularRawMulti ) AB allows you to do what you want,
> without using Custom backtester.
> By doing this, as the previous user said "you can never be sure of the order
> of the trades", but if you are willing to accept this assumption it'll do
> what you want.
>
Hello pmxgs,
I tried your suggestion on the type of system commented here (that is, acting
on the breakout of the previous bar's range), around this code(these are just
trials, so I don't care about the chronological order of the trades):
"
SetBacktestMode(backtestRegularRawMulti);
Buy = Cover= H > Ref(H, -1);
Sell= Short = L < Ref(L, -1);
BuyPrice=CoverPrice = Max(O, Ref(H, -1));
SellPrice = ShortPrice = Min (O, Ref(L, -1));
"
but I still get just 1 trade per bar.
Are you using some other settings?
If it is not too much pain, could you give just a rough example of an AFL code
taking 2 trades per bar?
Greetings,
Angelo.