We are currently testing the strategy on TWS Stocks. And we are faced with a problem that we cannot diagnose. We have two cases, but they all boil down to the same effect.
Description of case 1 - while working with the chart, the strategy works 95% well, but there is a moment when the Chart completely freezes and does not react to anything. It can only be closed by removing it from the processes.
Description of case 2 - this case is easier to reproduce, the strategy is launched on several instruments (from 10 to 100) at the same time. The result can be obtained faster. The strategies window is active but the actual strategies do not work.
Also, at this moment, no updated data is received from TWS (account status, position status). Also, the strategies themselves do not work, although they are shown to be active.
As a result, what we were able to see from the logs and using Debug:
1 - For unknown reasons, after processing orders from TWS, Ninja stops processing both strategies and any internal flows.
2 - Ninja does not write anything to the log
3 - Code management in strategies does not occur, by Debug we do not even enter the onBarUpdate method.
But the strangest thing is that everything works fine on the simulation and does not cause any problems.
Please tell me how to diagnose the problem and find the reasons for the freezing of ninja and strategies?
Logs and screenshots are attached.
P.S. NT 8.0.28.0 64-bit and new TWS Build 10.23.2a, Jun 15, 2023 4:54:18 PM (version from manual)
Fresh install Windows, NT and TWS. This error we have on any environment

Comment