I'm looking to generate an equity curve by using some closed trades coded into amibroker. However not all of the trades are taken. I'm trying to identify why not all of the trades are taken. Code is shown below. The one security that it does enter is entered and exited on the correct dates at the correct price, just i'm at a loss to identify why others are not being taken.
Any ideas of where to look are greatly appreciated.
SetOption( "initialequity", 1000000); //set big to ensure we have enough funds for backtest
SetPositionSize( 10000, spsValue );
SetBacktestMode(backtestRegularRawMulti); // to allow multiple open positions on the same symbol
SetOption( "MaxOpenPositions", 100 ); // loosened the value for better chance of isolating failure
if(name() == "PDI.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 0.21 ; sell = year() == 2021 and month() == 12 and day() == 1 ; sellprice = 0.240 ;}
if(name() == "BOE.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 1.8 ; sell = year() == 2021 and month() == 11 and day() == 30 ; sellprice = 2.720 ;}
if(name() == "360.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 11.13 ; sell = year() == 2021 and month() == 12 and day() == 14 ; sellprice = 11.750 ;}
if(name() == "TLX.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 6.47 ; sell = year() == 2021 and month() == 12 and day() == 7 ; sellprice = 6.620 ;}
if(name() == "LOV.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 18.72 ; sell = year() == 2021 and month() == 12 and day() == 3 ; sellprice = 20.610 ;}
if(name() == "AEF.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 12.97 ; sell = year() == 2021 and month() == 12 and day() == 14 ; sellprice = 12.490 ;}
if(name() == "360.au"){buy = year() == 2021 and month() == 11 and day() == 29 ; buyprice = 10.18 ; sell = year() == 2021 and month() == 12 and day() == 14 ; sellprice = 11.750 ;}

