Download MetaTrader 5
To add comments, please log in or register
No time for trading? Subscribe to signals!
kemalturgay
265
kemalturgay 2014.10.20 20:20 

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

http://www.metatrader5.com/en/terminal/help/trading/general_concept/execution_types


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

Rodrigo Malacarne
Moderator
9853
Rodrigo Malacarne 2014.10.20 23:39  
kemalturgay:

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

http://www.metatrader5.com/en/terminal/help/trading/general_concept/execution_types


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. |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link      "http://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

kemalturgay
265
kemalturgay 2014.10.21 17:15  
Thank you.
kemalturgay
265
kemalturgay 2014.10.22 17:16  
Hi again ... if the execution type of a broker is "exchange execution", can we say 100% confidently that it is an ECN?
/
To add comments, please log in or register