See MQL5 - JSON - API documentation for better understanding. You can create market or pending order with the default backtrader command. You can instruct MT5 to ...