From instruction to result
Market orders request execution at available prices, while pending orders depend on their trigger and order rules. An order may be filled, partially filled, rejected, or cancelled according to the applicable conditions. MetaTrader 5 records order, deal, and position information in its trade and history views.