I got the error message "There are no trading operations" (while uploading EA to MQL5 Market)

 

Hi,

I got also this error message:

test on EURUSD,H1 (netting) tester stopped because OnInit failed there are no trading operations


I use this condition to enable the EA only on Hedging account  

   // Enable only for hedge account
   if(account.MarginMode()!=ACCOUNT_MARGIN_MODE_RETAIL_HEDGING)
      return; 

Therefore the EA generates no orders with a netting account. Does it mean that MQL5 market accept EA that should work on a netting and hedging account ?

 
Dorian Baranes:

Hi,

I got also this error message:


I use this condition to enable the EA only on Hedging account  

Therefore the EA generates no orders with a netting account. Does it mean that MQL5 market accept EA that should work on a netting and hedging account ?

Ask to the moderator of the Market section or to ServiceDesk.
 
You can add a tester clause and pass one order for the evaluation(controlled via an input parameter which only matters on the tester).
BUT , you must notify users to switch it off when testing.
So Alains solution is best