In the IBKR trading platforms you simply enter a buy or sell order and the IBKR system marks your order as an opening buy or sell or a closing buy or sell. As an example, create a short sell order in the IBKR trading platform and IBKR checks the account's position and marks the order as an opening or closing order. Note that IBKR does not allow clients to simultaneously maintain both a long and short position in a given instrument, any order to sell (buy) will only result in a short (long) position to the extent the order quantity exceeds any existing long (short) position held and which would then be closed by execution of that order.
Where do I mark my order as a Sell to Close?
Procedurally, to sell short, all you need to do is specify your order Action as 'Sell' at the point you create your order. Note that we do not allow you to be both long and short the same security, so if you maintain a long position and enter a sell order, you will close out any long positions to the extent of your sell order and open a short position to the extent, if any, your sell order exceeds a long position. Please note that you must maintain a "Margin" type account with net liquidating equity of at least USD 2,000 for a short sale order to be accepted. Short sales are not allowed in "Cash" type accounts…
If you do not already hold a long position and enter a sell order, your order will be treated as a short sale (as accounts cannot simultaneously hold both a long and short position in the same security…
If you are holding a short position, there is no option on the TWS to "cover". Rather, you will simply place a buy order to buy back the number of shares or contracts you are short. For example, if you are short 100 shares, you can close your position by placing a buy order for 100 shares. You can also right click on your position at any time and use the "Close" button at the top of the right click window to initiate a closing order…
As IBKR does not allow clients to simultaneously maintain both a long and short position in a given instrument, any order to sell (buy) will only result in a short (long) position to the extent the order quantity exceeds any existing long (short) position held and which would then be closed by execution of that order…