EA publication in MQL5 market

 

Hello guys, I'm having trouble trying to publish EA, can someone help me solve the problems listed below:


test on EURUSD,H1
there are no trading operations
test on NZDUSD,H1
there are no trading operations
test on GBPUSDcheck,M30
 2019.03.01 04:29:59  NextPip__1 GBPUSDcheck,M30: 7023 undeleted objects left
 2019.03.01 04:29:59  NextPip__1 GBPUSDcheck,M30: 1502 objects of type OrderCollection left
 2019.03.01 04:29:59  NextPip__1 GBPUSDcheck,M30: 5521 objects of type Order left
 2019.03.01 04:29:59  NextPip__1 GBPUSDcheck,M30: 5521 leaked strings left
 2019.03.01 04:29:59  NextPip__1 GBPUSDcheck,M30: 1045412 bytes of leaked memory
strategy tester report 12 total trades
Files:
MQL5.JPG  44 kb
 
Joao Marcilio :

Hello guys, I'm having trouble trying to publish EA, can someone help me solve the problems listed below:

In OOP (Object Oriented Programming), the order of creation and deletion of created objects (in your case, these are objects of the 'OrderCollection' class) is very important.

Another likely reason: you created objects with 'new' and then forgot to delete those objects.

 
Joao Marcilio :

Hello guys, I'm having trouble trying to publish EA, can someone help me solve the problems listed below:


Reference Guide:

Documentation on MQL5: Language Basics / Operators / Object Create Operator new
Documentation on MQL5: Language Basics / Operators / Object Create Operator new
  • www.mql5.com
Object Create Operator new - Operators - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5