Download MetaTrader 5

ORDER_SEND_ERROR 10004 - Requote with FOK Order

To add comments, please log in or register
Marcelo Coutinho
1209
Marcelo Coutinho  

Good Morning !

Can someone please give a clue why I am facing an error 10004 with a FOK order ?

Regards,

Marcelo 

Adam Slucki
415
Adam Slucki  
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)

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.

To add comments, please log in or register