Types of execution

 

As we know, there are four types of execution in MT.

https://www.metatrader5.com/en/terminal/help/trading/general_concept


Is there any way to learn the type of execution of the broker from the client terminal?

 
kemalturgay:

As we know, there are four types of execution in MT.

https://www.metatrader5.com/en/terminal/help/trading/general_concept


Is there any way to learn the type of execution of the broker from the client terminal?

Hello kemalturgay,

please try this script:

//+------------------------------------------------------------------+
//|                                             GetExecutionType.mq5 |
//|                        Copyright 2014, MetaQuotes Software Corp. |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   ENUM_SYMBOL_TRADE_EXECUTION exeMode = (ENUM_SYMBOL_TRADE_EXECUTION)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_EXEMODE);
   Print("SymbolInfoInteger(_Symbol,SYMBOL_TRADE_EXEMODE) = ",EnumToString(exeMode));
  }
//+------------------------------------------------------------------+

Regards,
Malacarne

 
Thank you.
 
Hi again ... if the execution type of a broker is "exchange execution", can we say 100% confidently that it is an ECN?
Reason: