I thought 'backtestRegularRawMulti' would allow overlapping trades to be resolved trade by trade. I used it and it worked but now it does not. I cannot seem to solve the mystery.
signal-based backtest, redundant (raw) signals are NOT removed,
MULTIPLE positions per symbol will be open if BUY/SHORT
signal is 'true' for more than one bar and there are free funds
Sell/Cover exit all open positions on given symbol,
Scale-In/Out work on all open positions of given symbol at once.
It is doing only what is described in the manual and nothing more or less. Don't make assumptions. Just consult the manual. It covers everything very precisely. Software does not implement someone's assumptions. It implements what is described in the manual. And each and every day the same.
The only reason for differences are DIFFERENT USER SETTINGS.
Check your "Pad and align" settings. Padding to reference symbol may and will change the number of bars if you have data holes / extra bars.
Your DATA and SETTINGS are the "variable factors", not the software.
You might consider turning on Detailed Log in the Analysis Settings / Report tab, as that will tell you what AmiBroker is doing with any signals that you've generated.