What is the difference between "current order" and "current pending order"?

 

OrdersTotal

Returns the number of current orders.

int  OrdersTotal();

Return Value

Value of the int type.

Note

Do not confuse current pending orders with positions, which are also displayed on the "Trade" tab of the "Toolbox" of the client terminal. An order is a request to conduct a transaction, while a position is a result of one or more deals.

For each symbol, at any given moment of time, only one position can be open, while there can be several pending orders for the same symbol.

 

Question: 

1) I think they are the same thing. Is it correct? 

 2) I think there is no such thing as non-pending orders? 

 

Current order is a market order which is awaiting for execution (it should be filled somehow by deals) or is executing (this may take some time during which the order does exist before it goes to the history).

Pending order is a pending order - buy/sell stop/limit.

Here is one of articles on the subject - https://www.mql5.com/en/articles/211.

Orders, Positions and Deals in MetaTrader 5
Orders, Positions and Deals in MetaTrader 5
  • 2011.02.01
  • MetaQuotes Software Corp.
  • www.mql5.com
Creating a robust trading robot cannot be done without an understanding of the mechanisms of the MetaTrader 5 trading system. The client terminal receives the information about the positions, orders, and deals from the trading server. To handle this data properly using the MQL5, it's necessary to have a good understanding of the interaction between the MQL5-program and the client terminal.
 
marketeer:

Current order is a market order which is awaiting for execution (it should be filled somehow by deals) or is executing (this may take some time during which the order does exist before it goes to the history).

Pending order is a pending order - buy/sell stop/limit.

Here is one of articles on the subject - https://www.mql5.com/en/articles/211.

Very clear! Thanks!
 

we have 4 types of pending orders:

------------------------------------------------

 

Buy Stop

 

Sell Limit 


 

-------------------------------------------------------             Ask  Line

--------------------------------------------------------            Bid  Line

 Buy Limit

 Sell Stop

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: