Hi, so I was just trying to have a bit of fun and I ran into a bug that I can't seem to figure out. Basically, in my algorithm, I implement a stop loss in my algorithm that if the stock I have a position in drops 1% from the price I bought it at, I cancel any limit orders that I have on it (which I set almost immediately after buying) and then sell it at market value. However, as you can see, after I do this and cancel all of my other orders, I never buy or sell the stock again. The checker that checks to see 'if [stock] not in get_open_orders()' returns false, even though my stop loss cancelled all of my open orders and then the market sell had completed.
I tried to recreate this in a simpler algo, but couldn't get it to error like in this one. Any ideas? Thanks!