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
Just for information, there is now the OnTrade() event : https://forum.mql4.com/61012
Thanks, but I have been unable to find OnTrade anywhere in the documentation. Maybe reference to it has been removed in the later updates?.
I think that I will check as Thirteen said
For buy trades:
but if OrderClosePrice() is lower than the OrderTakeProfit(), use the OrderCloseTime to check that price had, at around that time equalled or exceeded the TP
And here I thought that you are talking about SL/TP settings which broker will honor or not.
I don't know where you got that impression. This was only ever about an EA being about to determine whether a trade was closed by hitting TP or SL with total accuracy.
Thanks, but I have been unable to find OnTrade anywhere in the documentation. Maybe reference to it has been removed in the later updates?.
I think that I will check as Thirteen said
For buy trades:
but if OrderClosePrice() is lower than the OrderTakeProfit(), use the OrderCloseTime to check that price had, at around that time equalled or exceeded the TP
It's a solution, but the problem is when the user closes a trade manually without it actually hitting either SL or TP.