I have java program (base on Spring Boot) that loads NtDirect.dll and connect to Ninjatrader through DllInterface. This communication work fine.
I've created simple strategy that:
1. Cancel all previous orders
2. Sends 10 buy limit orders after each bar close with fixed price gap between.
For example - if bar was closed on price 30.00, java sends 10 orders - 29.99, 29.98, 29.97...
There are ATM strategy with TP and SL 2 pips and local OCO simulation.
First 20-30 minutes everything works fine. Orders executes very fast. But after 30-40 minutes Ninjatrader start working very slow.
And when I stop my java program (respectively communication through dllInterface stops) - Ninjatrader start working as fast as at beginning.
Why Ninjatrader stucks after 30-40 minutes?
If you need any additional info - please let me know.
I can record a video session to reproduce this scenarios.
Thank you!
Comment