Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
- www.mql5.com
The maximum deviation/slippage parameter has no effect when using Market Execution Policy. It only has effect on Instant Execution Policy.
I don't know about the other execution policies because I have little experience with them, but here are more documented details:
The maximum deviation/slippage parameter has no effect when using Market Execution Policy. It only has effect on Instant Execution Policy.
I don't know about the other execution policies because I have little experience with them, but here are more documented details:
Please, let me know how should understand it. Should i change the action value for "request.action = TRADE_ACTION_DEAL;"
If i set
request.action SYMBOL_TRADE_EXECUTION_REQUEST
Will it sell at the value i gave when it reach to the tp value? if not, what should i give for this action or something else?No, the execution policy is not something you can change in your code. Please read the documentation I provided, before answering.
The execution policy is something set by the broker on your account type and also depends on the symbol's asset class.
It is clearly stated in the documentation that I linked ...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
i send slippage 0, i am using this code in mql5 for EURJPY and after the transaction closed, i see that there is slippage around 50-100 pips.
I ask my broker (H**) why it applies a slippage and i dont give any slippage,
they says it happens sometimes because of the market conditions. But it happens often.
When i try this code for mql4, it doesnt give slippage in the same broker. How is that possible?