1) right click on the ask price. A buy order will appear below.
2) right click to the left "BUY", then select "modify", then selection "order ticket". Any column in the buy order that is empty will do.
3) Enter the number of share you want initially.
4) choose you order type right below where you enter the share amount.
4a) Order Type: MKT
4b) Time in Force: GTC
4c) Check the "Sweep to Fill" box
5) Click the "Conditional" tab
5a) Click "Add" to the right.
5b) Click "Price"
5b1) Underlying: (the ticker symbol you want to trade)
5b2) Method: Double Bid/Ask (is default however you could choose midpoint for stocks with big bid/ask spreads.
5b3) Price: The price at which you want the order to be transmitted. You can choose this option if you want it to buy automatically at a certain price.
5b4) Click Finish
If you want it to be at a certain time and price condition, then follow these steps.
5c) Click "Add" to the right.
5d) Click "Time"
5d1) Time: The time at which you want the alert to become active.
5d2) Click Finish
You can attach several conditions to the same trade. If I want to buy AAPL just before but only if it has reached a certain price. The condition will look like this:
double bid/ask price of AAPL STK on SMART is >130.00 and
time >= 20150526 15:55:00 EST.
As a side comment, the "SMART" means the order will be routed to the exchange based upon IB's algorithm for best execution. You can choose which exchange you want to send your order to. Many people choose ARCA because they have the lowest ask prices but the worst add liquidity rebates.
AMEX, ARCA, ARCAEDGE, B-TRADE, BYX, DARK, DIRECT EDGE, EGDEA, IEX, ISE, NASDAQ BX, NASDAQ/Island, NASDAQ PSX, NYSE, NYSERLP
Some of these require separate market data subscriptions.
NYSE
https://wit1.interactivebrokers.com/MktServices/servlet/CreatePdf?f=/en/accounts/fees/NYSEstkfee.php&lm=1409343630&domain=www.interactivebrokers.com&style=undefined
NASDAQ/Island
https://wit1.interactivebrokers.com/MktServices/servlet/CreatePdf?f=/en/accounts/fees/INETstkfee.php&lm=1422652452&domain=www.interactivebrokers.com&style=undefined
IEX
https://wit1.interactivebrokers.com/MktServices/servlet/CreatePdf?f=/en/accounts/fees/IEXstkfee.php&lm=1400776865&domain=www.interactivebrokers.com&style=undefined
You would then click Transmit.
For the sell order.
1) Right click to the left of the "BUY" order.
2) Click or highlight "Attach"
3) You can setup your sell order the same as you would do for a buy order.