akshay2kokate:
I want to ask question that There is invalid fill in Expert Tab i got solution but dont know what to do further.That is where to put this coding.I saw this link https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes
10030 TRADE_RETCODE_INVALID_FILL Invalid order filling type
and you must read about FOK
ENUM_ORDER_TYPE_FILLING
https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties
As i said earlier where i have to put this in the settings of "fill or cancel" in fill policy. I cannot change this setup.
You need to set the Filling Type on the trade object once you create it (you can also set it as a constructor parameter);
... m_trade = new CTrade(); m_trade.SetTypeFilling(ORDER_FILLING_IOC); ...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want to ask question that There is invalid fill in Expert Tab i got solution but dont know what to do further.That is where to put this coding.I saw this link https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes
10030 TRADE_RETCODE_INVALID_FILL Invalid order filling type
and you must read about FOK
ENUM_ORDER_TYPE_FILLING
https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties
As i said earlier where i have to put this in the settings of "fill or cancel" in fill policy. I cannot change this setup.