I guess it's question about MT5.
You must be aware that in MT5 you have few types of execution (http://www.metatrader5.com/en/terminal/help/trading/general_concept/execution_types)
You must be aware that in MT5 you have few types of execution (http://www.metatrader5.com/en/terminal/help/trading/general_concept/execution_types)
and some of them are not supported by particular brokers.
So for example if for MqlTradeRequest you assing values to given mebers:
action
symbol
volume
type_filling
type
You're trying to have "market execution" which may be unsupported and cause your error.
Try assigning value to more mebers, to have "instant execution":
action
symbol
volume
price
sl
tp
deviation
type
type_filling
I hope it resolves your problem.
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
Good Morning !
Can someone please give a clue why I am facing an error 10004 with a FOK order ?
Regards,
Marcelo