EA Failing to validate when uploading to the mark

 

My ea is failing to validate when i upload it on mql. It gives me the error below. Any suggestions on how O can resolve this?


test on EURUSD,H1
strategy tester report 43 total trades
test on NZDUSD,H1
 2016.02.01 17:00:22  Tester: not enough money for buy 0.10 NZDUSD at 0.64887 sl: 0.64605 tp: 0.65169 [2016.02.01 17:00]
 2016.02.01 17:00:22  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 65, FreeMargin: -63.89
 2016.02.01 17:00:22  Tester: pending order is deleted [no enough money]
 2016.02.02 23:54:35  Tester: not enough money for buy 0.10 NZDUSD at 0.65346 sl: 0.65139 tp: 0.65553 [2016.02.02 23:54]
 2016.02.02 23:54:35  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 65, FreeMargin: -64.35
 2016.02.02 23:54:35  Tester: pending order is deleted [no enough money]
 2016.02.03 11:09:55  Tester: not enough money for buy 0.10 NZDUSD at 0.65930 sl: 0.65574 tp: 0.66286 [2016.02.03 11:09]
 2016.02.03 11:09:55  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 66, FreeMargin: -64.93
 2016.02.03 11:09:55  Tester: pending order is deleted [no enough money]
 2016.02.04 10:24:24  Tester: not enough money for buy 0.10 NZDUSD at 0.66741 sl: 0.66528 tp: 0.66954 [2016.02.04 10:24]
 2016.02.04 10:24:24  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 67, FreeMargin: -65.74
 2016.02.04 10:24:24  Tester: pending order is deleted [no enough money]
 2016.02.05 11:18:50  Tester: not enough money for buy 0.10 NZDUSD at 0.67123 sl: 0.66909 tp: 0.67337 [2016.02.05 11:18]
 2016.02.05 11:18:50  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 67, FreeMargin: -66.12
 2016.02.05 11:18:50  Tester: pending order is deleted [no enough money]
 2016.02.09 17:12:22  Tester: not enough money for buy 0.10 NZDUSD at 0.66548 sl: 0.66359 tp: 0.66737 [2016.02.09 17:12]
 2016.02.09 17:12:22  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 67, FreeMargin: -65.55
 2016.02.09 17:12:22  Tester: pending order is deleted [no enough money]
 2016.02.10 10:31:28  Tester: not enough money for buy 0.10 NZDUSD at 0.66477 sl: 0.66228 tp: 0.66726 [2016.02.10 10:31]
 2016.02.10 10:31:28  Tester: PrevBalance: 1.00, PrevPL: 0.00, PrevEquity 1.00, PrevMargin: 0.00, NewMargin: 66, FreeMargin: -65.48
 2016.02.10 10:31:28  Tester: pending order is deleted [no enough money]
there are no trading operations
 

What is "upload it on mql", and what is "when uploading to the mark"?

I see the following from your text above: "Tester: not enough money" ... it means that you were backtesting EA, right?
And demo or real deposit was not enough for this EA to open the trade.

So, theoretically speaking - 

  • increase deposit;
  • reduce lot size in EA's settings;
  • ask to improve this EA in Freelance; or
  • do not use this EA (there are a lot of other EAs).

 
Sergey Golubev:

What is "upload it on mql", and what is "when uploading to the mark"?

I see the following from your text above: "Tester: not enough money" ... it means that you were backtesting EA, right?
And demo or real deposit was not enough for this EA to open the trade.

So, theoretically speaking - 

  • increase deposit;
  • reduce lot size in EA's settings;
  • ask to improve this EA in Freelance; or
  • do not use this EA (there are a lot of other EAs).

I want to publish the EA on mql5. So when i attach the ea, mql5 validates the ea automatically. So that is the error message I get when I submit it to mql5 for validation.

When mql5 validates, it does not give an option to enter an account balance. 

 
Ndamulelo Masindi:

I want to publish the EA on mql5. So when i attach the ea, mql5 validates the ea automatically. So that is the error message I get when I submit it to mql5 for validation.

When mql5 validates, it does not give an option to enter an account balance. 

mql5 is programming language ... it is impossible to publish anything to programming language ...

Do you want to publish EA to the Market, or to CodeBase, or use EA to create the Signal
I think, it is related to the Market ...

I am not a coder sorry ... if EA needs to be improved for the Market so use Freelance.
Or wait when some more experienced users will reply (because I've never published anything on the Market sorry).

 
You need to add into your code a checkup for currently available free margin. If it's not sufficient for opening next order you're going to create, your code should not send the order.
 
Stanislav Korotky:
You need to add into your code a checkup for currently available free margin. If it's not sufficient for opening next order you're going to create, your code should not send the order.
I did exactly this and it worked. Thank you very much
 
Sergey Golubev:

mql5 is programming language ... it is impossible to publish anything to programming language ...

Do you want to publish EA to the Market, or to CodeBase, or use EA to create the Signal
I think, it is related to the Market ...

I am not a coder sorry ... if EA needs to be improved for the Market so use Freelance.
Or wait when some more experienced users will reply (because I've never published anything on the Market sorry).

I did exactly what Stanislav Korotky said I should do and it has worked. Thank you very much for your contribution.
Reason: