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
Actually, the requested price is Ask or Bid, and they both include the spread. So slippage from requested price includes the max spread.
When i do the following:
This will only fire an order when spread < 3
Regardless of market price.
This has slippage also set to 3.
But it will still fire when you order at spread == 100
Those are two different things.
When i do the following:
This will only fire an order when spread < 3
Regardless of market price.
This has slippage also set to 3.
But it will still fire when you order at spread == 100
Those are two different things.
When i do the following:
This will only fire an order when spread < 3
Regardless of market price.
This has slippage also set to 3.
But it will still fire when you order at spread == 100
Those are two different things.
In mql5 you get execution type by those lines
Unless it is one of those
SYMBOL_TRADE_EXECUTION_REQUEST
SYMBOL_TRADE_EXECUTION_INSTANT
you can't use deviation (an ECN broker probably).
I am using metaquotes demo MT5 server hedging account for AUDJPY I get SYMBOL_TRADE_REQUEST_INSTANT by this code and run this script
to not get a price higher then request.price - I get requotes and sometimes it succeeds to get the request.price and opens only that price.
*-but, you are partly right about the deviation that it refers price, it actually refers price + spread together and does not allow them both to exceed the max deviation set from request.price (in case you know it and want to set a deviation from it) - which means if you set the ask price like that - you will surely get it or better whatever the spread will be
**-so if you write like what you wrote before that
You will ensure them both - that the price + spread together won't deviate more then x points from the known ask at time of execution (no sudden spread jump should be possible) + that you only receive ask price when the spread is low (lower then 3 for instance)