I've created this indicator, which pings various websites provided by the user at the end of each bar, based on the ConnectionMonitor from MXASJ ( see this thread).
Features
This indicator has the following features:
- Ping as much websites as entered by the user,
- Display an error to the NinjaTrader Control Center Log tab when an ping fails,
- Custom number of milliseconds for the timeout of the ping,
- The results of the pings (successful and unsuccessful) can be displayed in the Output Window,
- Text box with data from the last pings (time of last pings and roundtrip time in milliseconds for each site),
- An configurable text box (opacity, font size, background color, and an on/off setting).
As soon as there is a ping time out, you'll see an spike downwards in the indicator (i.e. there is no milliseconds response time) and a red dot drawn on the indicator panel to highlight the error. Also will the textbox print 'error' besides the website which failed to ping successfully. In that way, you can see if it's just an website which couldn't be contacted or, if all websites give errors, an potential problem with your internet connection.
Any feedback or questions are more than welcome.
Version 1.0 - exported with NinjaTrader version 7.0.1000.2.
(A special thanks for MXASJ for providing an great example with the ConnectionMonitor to learn from).
Category The Elite Circle
|
|
|