My strategy sends out emails to myself and a few others about each step it takes. This allows us to be notified when things happen. This is done by querying my DB running on my website and then sending out those emails to the retrieved recipients.
Now strangely if the data connection or the feed drops a few times and then reconnects/recovers again I intermittently see situations when the DB query fails. I don't know why it fails but it returns 0 records (which is what I'm logging). When I run a manual query on the server it will be able to connect and execute the query just fine. Only NinjaTrader stops being able to run the SQL query once it gets 'screwed up' somehow. The only available measure has been to restart NinjaTrader after which the DB queries execute just fine.
The DB service is a simple service DLL I wrote myself and which works without problems. Yes, I know you guys do not support outside DLLs but I still would like to know what could possibly cause this type of behavior. Why would a few data outages put Ninja into a mode where it somehow detaches the DLLs or is unable to call them properly?
Any ideas would be very welcome as this has been a major annoyance for years.
Comment