Why can’t I place a sell order immediately after a buy order of the same position?
Sell orders require that your position be settled and reconciled, which typically takes around T+2 days depending on the asset. Until then, the shares are not available for selling.