several possibilities
1 bad brokerage (some simulate trading entirely, Trade Zero for ex.)
2 wrong destination. Very common when trading with IB smart routing, even wehn higher then the bid, you can not sell.
3 wrong order (fill outside rth not selected)