open_order
Open a new trading order (market or pending) with support for BUY/SELL and limit/stop types, including optional stop loss and take profit.
Instructions
Open a new trading order (market or pending). Order types explained:
BUY/SELL: Market orders execute immediately at current price
BUY_LIMIT: Buy BELOW current price (buy when price drops)
SELL_LIMIT: Sell ABOVE current price (sell when price rises)
BUY_STOP: Buy ABOVE current price (buy on breakout up)
SELL_STOP: Sell BELOW current price (sell on breakdown) IMPORTANT: For SELL_STOP, price must be BELOW current market price. (새로운 거래 주문을 생성합니다. SELL_STOP은 현재가 아래에 설정해야 합니다.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sl | No | Stop Loss price (optional) | |
| tp | No | Take Profit price (optional) | |
| type | Yes | Order type: - BUY: Market buy (immediate execution at current ASK price) - SELL: Market sell (immediate execution at current BID price) - BUY_LIMIT: Pending buy order BELOW current price (buy when price drops to limit) - SELL_LIMIT: Pending sell order ABOVE current price (sell when price rises to limit) - BUY_STOP: Pending buy order ABOVE current price (buy when price breaks above stop) - SELL_STOP: Pending sell order BELOW current price (sell when price breaks below stop) Example: Current XAUUSD price=2700. BUY_LIMIT at 2695 (buy if drops), SELL_STOP at 2695 (sell if drops) | |
| magic | No | Magic number for order identification (optional) | |
| price | No | Price for pending orders (required for LIMIT/STOP orders). Not used for market BUY/SELL | |
| symbol | Yes | Trading symbol (e.g., XAUUSD, EURUSD) | |
| volume | Yes | Order volume in lots (e.g., 0.01, 0.1, 1.0) | |
| comment | No | Order comment (optional) |