NOTE: THIS ARTICLE IS NOW OUTDATED AS AMIBROKER SUPPORTS NEW BACKTEST MODE THAT HANDLES THIS NATIVELY http:\/\/www.amibroker.com\/f?setbacktestmode<\/a><\/font><\/p>
The sample code below shows how to use custom portfolio backtester procedure to change the way backtester works. Normally buy is matched against sell and redundant buy signals between initial buy and matching sell are removed as shown in the picture there:
http:\/\/www.amibroker.com\/gifs\/bt_regular.gif<\/a><\/p>