Hello, I have an issue with backtesting and stop orders. Stop orders triggered properly on time and value on a backtesting but every time when I try to buy some securities after that I have got "Insufficient buying power to complete order" error. Looks like the stop orders do not release cash back to the portfolio. Please advice.

118220_1607104986.jpg

Author