REJECTED: This order may result in an oversold/overbought position in your account. Please check your position quantity and/or open orders
What is the best way to work around this? My strategy is running on 1 min bars. I would like to avoid having to have my code cancel open orders at a specific time as that is a bit hacky and leaves me susceptible to a large move at the end of the day. Why wouldn't the Exit on session close, close/cancel any other open orders generated by the strategy first?
Comment