Strugling with automatic validation mql5
-
I'm stuck at automatic validation, sometimes works, sometimes doesnt. Does anyone have experience with this?
https://www.mql5.com/en/articles/2555 this article doesnt any help for me.

This error happening for my ex4 file, mt4 expert advisor.
Any advice ?
-
There is a limit of 200 trades on MT4:
From ChatGPT
In MetaTrader 4, error 148 typically indicates "too many open orders" or "order send error." This error occurs when you attempt to open a new trade, but the platform's maximum allowed number of open trades has been reached.To resolve this error, you can:
- Close some existing trades manually to free up space for new trades.
- Modify your trading strategy to limit the number of simultaneous open trades.
- Check for any pending orders that may have failed to execute and resolve them.
- Consider optimizing your EA or trading approach to avoid exceeding the platform's limitations.
It's important to note that error 148 can also occur due to other reasons, such as connectivity issues with your broker or insufficient account funds. Therefore, it's essential to review your trading conditions and account status to determine the specific cause of the error.
-
Yes I have set using normal order instead of pending order. And limiting with blue block check order count. But it still not working.
-
When you backtest this on your platform do you get these errors?
-
On my terminal? It works without error.. On mql5 vallidation error occurs.
-
I cant help then, sometimes things don't work as expected.
-
@Byens said in Strugling with automatic validation mql5:
On my terminal? It works without error.. On mql5 vallidation error occurs.
on the validation test their sotware checks all the inputs, for example if you have a maximum number of trades that can be selected, it put an excessively high number to test it, this is because those who buy your EA don't have to go broke with their balance sheet. So still put a limit on the number of trades (e.g. 50, not selectable)
-
the same for the numbers of pending orders, free margin ecc..
-
yes limit is 60 but i set lower and it is not working too.
-
@Byens said in Strugling with automatic validation mql5:
yes limit is 60 but i set lower and it is not working too.
is this lower number hidden?
-
no i set those from input
-
this is input, i tried to set 10 , not working too. Error 28 order opened -
@Byens said in Strugling with automatic validation mql5:
this is input, i tried to set 10 , not working too. Error 28 order openedI think I didn't explain myself well in my post above. The mql5 com site software that checks the product before publishing, forces this input and all other inputs. You have to put a hidden limit number in your code to prevent this.
-
I tried all possibles variabel under if testing. it works with mt5, can not pass mt4. Maybe will try to make new block from studio, but i cant find tutorial here
-
this way should work, even if the validation software were to put for example: 200, the maximum number of orders is still limited to 60.


-
so here is my solution,

set once a day block before buy and sell
-
@Byens said in Strugling with automatic validation mql5:
so here is my solution,

set once a day block before buy and sell
forgive me but i don't understand, it is working now this way?
-
yes, i made input boolean autovalidaton set to true while uploading to mql website, under that i place green block once a day. For averaging position i didnt put anything under those condition, so order will be less than it should be
-
-
please mark this topic as solved
