i have searched on Forum and explainations are not easy to be fit on my problem. So i have shown my personal case. This question is frequent because is very frustrating to make efforts in developing a good EA and then get stopped by mysterious errors that only Automatic Validator can find and user is not able to fix it till the validator only writes "error n."
It very CLEARLY states error 131 invalid Lotsize.
https://www.mql5.com/en/articles/2555#invalid_lot
Also why can't your robot run on NZDUSD ?
It should be able to run on all instruments, OR you will have to put a filter that makes sure it ONLY runs on EURUSD.
- www.mql5.com
It very CLEARLY states error 131 invalid Lotsize.
Sorry Marco, why only the validator finds an invalid lot size while the backtester opens every order without any problem?
i got the LotsOptimized() function in my code and that already make checks on minlot,maxlot,lotstep . it is called during every OrderSend.
have i to place the CheckVolumeValue function at the bottom of code or on head?
Don't you already?
Making an EA without lot size checking prior to attempting to place an order/position is rather strange, at the least. If you do not have such function, make one - if for nothing else, for your own safety when you let the EA trade
Don't you already?
Making an EA without lot size checking prior to attempting to place an order/position is rather strange, at the least. If you do not have such function, make one - if for nothing else, for your own safety when you let the EA trade
so if you consider my OrderSend commands are inside void OnTick() , where should i place the CheckVolumeValue function to let it work?
As usual : prior to attempting to place an order
Hi, I tried called the CheckVolumeValue function, in main EA before OrderSend:
double volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN);
string descr;
CheckVolumeValue(volume,descr);
but not working. Can any senior advise? Thanks.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi people,
if a good number of EAs are on the Market , so i think many people has passed the Automatic Validation .
My EA does not give errors on the backtester, but when validating, it gave errors that now were solved. In this moment, i am blocked on another error : it tests EURUSD H1 with success, then it tests NZDUSD H1 (WHY????) giving those damned lines:
ok, i am very tired of this errors. Neither available articles on Forum, or Suppor did not help. Now i send you some code and maybe someone can say why that error appears. As you can see, the portions listed here contain control functions (lot optimization, check money, check min max lot) so Error131 is unknown reason. Why does the automatic validation work on NZDUSD too?