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?
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
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 moneyif(Free_Margin2<0)
{
Print("Not enough money "," Error code=",GetLastError());
return(false);
}
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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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
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"
or read this ... https://www.mql5.com/en/forum/42809
Please always use the CODE button (Alt-S) when inserting code.
Hello
the error is back
test on EURUSD,H1 strategy tester report not found
please tell mql5.com to fix it again
use this code before "Ordersend"
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!