OnTrade() / HistoryDealsTotal(): proper notification "end of test"-deal missing?
Plymo:
It appears that my EA doesn't get informed through OnTrade() at the final "end-of-test"-deal or at least HistoryDealsTotal() does not get updated correctly .
Has anyone else observed this too?
I have found a workaround: call OnTrade() one more time myself as soon as I receive OnTester().
But "my oh my", my code is getting so ugly because all of these MQL5-workarounds.
Cheers!
Yes, I noticed also and reported it as bug 3 days ago. Hope it gets fixed by next update.
Good luck
Get in touch with developers using Service Desk!
- www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
It appears that my EA doesn't get informed through OnTrade() at the final "end-of-test"-deal or at least HistoryDealsTotal() does not get updated correctly .
Has anyone else observed this too?
I have found a workaround: call OnTrade() one more time myself as soon as I receive OnTester().
But "my oh my", my code is getting so ugly because all of these MQL5-workarounds.
Cheers!