Solved the issue myself. During the test, pairs with the names "XAUUSDcheck" and "GBPUSDcheck" are used. So added them as a condition, now the EA is being tested normally.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want to put my Expert Advisor for sale, however, during automatic testing, the Expert Advisor does not open orders, because in order to open an order, you need to set the EA up first, and only then it opens an order. Of course, the question is easy solvable, however there are a few nuances. I can easily put in the code something like 'IsTesting()' function, so then the EA is automatically tested before the sale, it use a specific configuration for order opening. However then the user will test the ea in his terminal, it will also use this configuration, which is not very convenient. In order to by pass i used a time filter, so the EA uses the configuration only when a specific time is being tested in the EA.
"ext_EntryCheck_Sett1" - is the rule, so the opens trades
In the past this code was working, however not anymore. As i remember, the market showed what date was used for the testing. Now i tried to use this code and it doesn't open anything.
I just don't want the setting to be used when the user does their personal test. Maybe there is some function or a flag that indicates that a test is being carried out in the market?