Is it possible that only in StrategyTester are no BUY orders executed? On my demo account, where I'm currently running the same code/EA, both random BUY and SELL orders are executed.
Is it possible that only in StrategyTester are no BUY orders executed? On my demo account, where I'm currently running the same code/EA, both random BUY and SELL orders are executed.
It's not related to the strategy tester, but to the symbol specification - there can be symbols for which only long trades allowed. But you did not provide neither settings nor specs.
Stanislav Korotky #: It's not related to the strategy tester, but to the symbol specification - there can be symbols for which only long trades allowed. But you did not provide neither settings nor specs.
I've replaced the complex RNG with an extremely simple approach that uses GetMicrosecondCount() combined with a basic Linear Congruential Generator, and this now seems to execute at least BUY and SELL orders. So it wasn't the StrategyTester's fault.
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.
Is it possible that only in StrategyTester are no BUY orders executed? On my demo account, where I'm currently running the same code/EA, both random BUY and SELL orders are executed.
Is it possible that only in StrategyTester are no BUY orders executed? On my demo account, where I'm currently running the same code/EA, both random BUY and SELL orders are executed.
It's not related to the strategy tester, but to the symbol specification - there can be symbols for which only long trades allowed. But you did not provide neither settings nor specs.