Change of Market Exceution Mode

To add comments, please log in or register
QMining
13
QMining  

Hello all,

I am new to mql in general but I have experience with c/c++ programming,

I am trying a demo account using mql5 and sometime I have No Price returns from OrderSendAsync() function ,

I checked the SYMBOL_TRADE_EXEMODE using SymbolInfoInteger and return SYMBOL_TRADE_EXECUTION_INSTANT while the error indicates it happens if the trading account not set to Market_Execution mode

Any idea to change the account setting to SYMBOL_TRADE_EXECUTION_MARKET either coding wise of from any setting int the MetaTrader5 interface,

thanks in advance for your help

Alain Verleyen
36589
Alain Verleyen  
QMining:

Hello all,

I am new to mql in general but I have experience with c/c++ programming,

I am trying a demo account using mql5 and sometime I have No Price returns from OrderSendAsync() function ,

I checked the SYMBOL_TRADE_EXEMODE using SymbolInfoInteger and return SYMBOL_TRADE_EXECUTION_INSTANT while the error indicates it happens if the trading account not set to Market_Execution mode

Any idea to change the account setting to SYMBOL_TRADE_EXECUTION_MARKET either coding wise of from any setting int the MetaTrader5 interface,

thanks in advance for your help

You can't change that, it's determined on broker side.

Fix your code.

QMining
13
QMining  
Alain Verleyen:

You can't change that, it's determined on broker size.

Fix your code.

Thx Alain for your reply,

Q: What is the most practice for fixing OrderSend in Instant Exceution mode?, is it a repeated function call till order executed , or other way ?

Fernando Carreiro
4741
Fernando Carreiro  
QMining: Q: What is the most practice for fixing OrderSend in Instant Exceution mode?, is it a repeated function call till order executed , or other way ?
Here are some options to consider:
  1. Setting a larger slippage (price deviation) on the original order.
  2. Retrying the order placement at a new price (latest market price) but only within a set limit of price range deviation.
  3. Not retry at all and wait for next signal trigger.
QMining
13
QMining  
Fernando Carreiro:
Here are some options to consider:
  1. Setting a larger slippage (price deviation) on the original order.
  2. Retrying the order placement at a new price (latest market price) but only within a set limit of price range deviation.
  3. Not retry at all and wait for next signal trigger.

Thx for your reply, My code based on high frequency number of trades and requires to max possible to place trades at certain prices with specific volumes or trade algorithm would fail,

larger slippage or replace order by new price won't help as such,

from your experience , whom do you recommend as HFT broker that guarantee to max fast execution without slippage ?

I am checking XM now and they are using SYMBOL_TRADE_EXECUTION_MARKET but I am not sure of their fast response, ?


Thanks again for your help

Fernando Carreiro
4741
Fernando Carreiro  
QMining: Thx for your reply, My code based on high frequency number of trades and requires to max possible to place trades at certain prices with specific volumes or trade algorithm would fail, larger slippage or replace order by new price won't help as such, from your experience , whom do you recommend as HFT broker that guarantee to max fast execution without slippage ?

I am checking [???] now and they are using SYMBOL_TRADE_EXECUTION_MARKET but I am not sure of their fast response, ?

For HFT, use a NDD ECN broker using Market Execution policy, but you will not find any with zero slippage! There will always be slippage, especially on Market Execution policy (because that is how it works).

Market Execution policy means that it takes whatever price is available at the time and slippage limits are totally ignored and you will not be able to limit them in anyway with Market Execution policy when placing an order. All you can do is manage it after the fact.

It is however, against forum rules to discuss specific brokers. You will have to do your own research.

To add comments, please log in or register