Can't publish my product ex4 , (Strategy tester report not found) even when try upload previous product (that already pass in past) - page 2

 
Hi
the error is fixed
try it now
 

Actually this error was fixed, but I get another error “test on NZDUSD,H1 2022.02.14 22:00:00  Tester: not enough money for buy 0.20 NZDUSD”.

I use MMmode, so I believe that accountfreemargin are enough. In fact, EURUSD H1 test is fine.

Can I get some advise?

 
Hiroki Fukumi #: Actually this error was fixed, but I get another error “test on NZDUSD,H1 2022.02.14 22:00:00  Tester: not enough money for buy 0.20 NZDUSD”.I use MMmode, so I believe that accountfreemargin are enough. In fact, EURUSD H1 test is fine. Can I get some advise?

https://www.mql5.com/en/forum/344682/page16#comment_50706663

Strategy Tester Report not found - How can I fix an issue when trying to upload my EA to MML5 Market?
Strategy Tester Report not found - How can I fix an issue when trying to upload my EA to MML5 Market?
  • 2023.06.08
  • www.mql5.com
It would be great to get it fixed again same with me. The checks a trading robot must pass before publication in the market - the article. Hi i'm trying to contact you privately but you have to accept my friendship to send you a message
 
Hiroki Fukumi #:

Actually this error was fixed, but I get another error “test on NZDUSD,H1 2022.02.14 22:00:00  Tester: not enough money for buy 0.20 NZDUSD”.

I use MMmode, so I believe that accountfreemargin are enough. In fact, EURUSD H1 test is fine.

Can I get some advise?

use this code before "Ordersend"

double Free_Margin2=AccountFreeMarginCheck(Symbol,Type,Lots2);
//-- if there is not enough money
if(Free_Margin2<0)
{
  Print("Not enough money "," Error code=",GetLastError());
  return(false);
}

Improperly formatted code edited by moderator.

or read this ... https://www.mql5.com/en/forum/42809

AccountFreeMarginCheck in MQL5 ?
AccountFreeMarginCheck in MQL5 ?
  • 2015.04.08
  • www.mql5.com
Hi. Traders and Coders. I used this article to convert my MQL4 code to MQL5 code. https://www.mql5...
 
@Nebal S I Saloul #:

Improperly formatted code edited by moderator.

Please always use the CODE button (Alt-S) when inserting code.

Code button in editor

 

Hello

the error is back

test on EURUSD,H1 strategy tester report not found

please tell mql5.com to fix it again

 
Nebal S I Saloul #:

use this code before "Ordersend"

Improperly formatted code edited by moderator.

or read this ... https://www.mql5.com/en/forum/42809

Hi,

Would you explain what would the Validation tester do with the result of the Free Margin check?

I can appreciate the reason of having this check in live/demo trading and back-testing, where a person can act upon finding out there is insufficient fund for opening a trade.

The user either

1. Reduces the lot size or

2. Add money to the account then restart the EA or

3. Close some running trades.

The EA can also be programed to lower lot size.

Or, perhaps a recklessly optimistic user, who has running trades, may even choose let the EA continue to run and hope to end in profit by those trades and "recover" some margin.  

I can't wrap my head around what can the validation tester do?

Will it look up for the error print and be satisfied with that the check being in place before a trade order is sent?

Will it then change the criteria and proceed with the next test?

Would you kindly share your thoughts please? 

Thanks!