question to MetaQuotes - ambiguity in MQL5 documentation with regard to order filling policy

 

Dear MetaQuotes,

Could you please clarify what is the proper description of Return filling policy? On the Symbol Properties documentation page in MQL5 Reference one can read:

This policy is used only for market orders (Buy and Sell), limit and stop limit orders and only for the symbols with Market or Exchange execution.


and then just below:

In the Market and Exchange execution modes the Return policy is always allowed for all the order types

Also, in Trade.mqh, there is a section of code like below - which does cover STOP orders, but doesn't cover STOP_LIMIT orders:

if(m_request.type==ORDER_TYPE_BUY_STOP || m_request.type==ORDER_TYPE_SELL_STOP ||
               m_request.type==ORDER_TYPE_BUY_LIMIT || m_request.type==ORDER_TYPE_SELL_LIMIT)
              {
               //--- in case of stop order
               //--- add the corresponding filling policy to the request
               m_request.type_filling=ORDER_FILLING_RETURN;
               return(true);
              }

So, which statement is true? Can Return be used for STOP orders or not?

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Requests to execute trade operations are formalized as orders. Each order has a variety of properties for reading. Information on them can be obtained using functions Position identifier that is set to an order as soon as it is executed. Each executed order results in a deal that opens or modifies an already existing position. The...