Dear all. here I share my backtest - I see lots of invalid orders and more and more towards the end of BT - why and how to fix? I use SetHoldings and allow some cushion to meet enough capital requirement but it happens regardless of that. Maybe I need to use LimitOrders but how to implement it the easiest way (I am new in QC). Thanks.

Author