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.
You can't change that, it's determined on broker size.
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 ?
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
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.