Hi. Here's my latest stab at buying and selling a basket of "good" and "bad" stocks. I will later add bells and whistles, such
as using stop limits, and target sells, as well as varying percentage of shorts to longs based on the status of the S&P. But before I do ,
I'm confronted with the issue that it is repeatedly buying the same position (see CASI) instead of skipping over any stocks that are
already short or long or for which orders are pending. What did I miss?
Thanks