Download MetaTrader 5

OnTrade() / HistoryDealsTotal(): proper notification "end of test"-deal missing?

To add comments, please log in or register
Code Base will help you in mastering your theoretical skills. Come and learn!
Max Payne
411
Max Payne 2010.08.20 20:04 

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!

Cym Act
192
Cym Act 2010.08.21 06:00  
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.
To add comments, please log in or register