
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
I am asking are there any more ideas for a reliable check for closing on SL/TP on MT4?
MT5 has the ORDER_CLOSE_REASON field. MT4 does not have it.
At least William version would deal with such slippage, most of the time.
It's not an easy issue to solve in a general way.
isTP = |OCP-OTP| < |OCP-OSL| is also not precise! The latter condition might also be fulfilled for any manually-closed order (i.e. a non-specific test).
Better is a combined approach:
I am not sure 100%