Folks, I'd like to better understand the resolution for this error:
“Sell stop or sell stop limit orders can’t be placed above the market. Strategy submitted an order that generated the following error - order rejected....”
I've seen this issue discussed frequently on the forum. You provide quality responses, which I appreciate. For my code, testing in Playback, I was able to eliminate this error by changing the code from:
EnterShort()
to
EnterShortStopMarket(GetCurrentBid())
I'm happy to have this fixed, but it still leaves me wondering why this error happens in the first place? Since EnterShort places an order at the market price, then how can the price be submitted above the market price? Thanks,
Comment