I need to perform some action periodically (e.g. query a database once per second), regardless any market data. Is there any (NinjaTrader or NinjaScript built-in) periodical event or procedure that I could use?
Or should I use some of the .NET timers? I tried starting System.Threading.Timer when the strategy started, but it didn't work correctly (sometimes the callback was invoked, sometimes not)
Thank you in advance
Comment