masoodbabagoli:
There is no solution you will get slippage Suppose we have opened a buy position at the price of 2500 XAUUSD (placed by the EA) and we set the TP to 2501 (virtually means in my mql codes) and there is no SL.
At the time of publishing the news (high volatility situation ), the price reaches our TP price for just a short moment, but , the time for converting a order into a deal is high
(for example 11503 mili seconds = 11 seconds !!) and during this time definitely the price has changed and my EA close that position with a loss !!!
any solutions ?
thanks
You might want to set "real tp/sl" values much higher than your virtual tp/sl.
And have trailing applied to real and virtual tp/sl.
In worst case scenario, your real tp/sl would get triggered instead of your virtual tp/sl.
Good luck.
And have trailing applied to real and virtual tp/sl.
In worst case scenario, your real tp/sl would get triggered instead of your virtual tp/sl.
Good luck.
Soewono Effendi #:
You might want to set "real tp/sl" values much higher than your virtual tp/sl.
And have trailing applied to real and virtual tp/sl.
In worst case scenario, your real tp/sl would get triggered instead of your virtual tp/sl.
Good luck.
my strategy work with partial close and when price hit my virtual tp i want to close half of position not all of that
You might want to set "real tp/sl" values much higher than your virtual tp/sl.
And have trailing applied to real and virtual tp/sl.
In worst case scenario, your real tp/sl would get triggered instead of your virtual tp/sl.
Good luck.
masoodbabagoli #: Mr Paul Anscombe please help
What part of “There is no solution you will get slippage” was unclear?
TP becomes a market order when hit. Your close price will vary.
Welcome to trading.

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
Suppose we have opened a buy position at the price of 2500 XAUUSD (placed by the EA) and we set the TP to 2501 (virtually means in my mql codes) and there is no SL.
At the time of publishing the news (high volatility situation ), the price reaches our TP price for just a short moment, but , the time for converting a order into a deal is high
(for example 11503 mili seconds = 11 seconds !!) and during this time definitely the price has changed and my EA close that position with a loss !!!
any solutions ?
thanks