Random order functionality - page 2

 

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.

 
ch0sen #:

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.