One of my fundamental algorithms tries to buy AWD on 2003-06-30 and 2004-06-30, but the orders fail. I am not sure why. I use a try-except clause to paper over it.
In another case, I successfully (or without reported error) purchase shares of YRCW on 2007-06-29, but wen I try to sell it a year later on 2008-06-30, I get an error on the Sell Order. For the remainder of the simulation, YRCW stays on the books in my context.portfolio data frame, but all sell orders fail.
Can anyone explain these two strange behaviors? Both stocks seem to have been healthy at the time of attempted purchasing or selling.
Thanks in advance!