Visual Confirmation Receiving Trade Info On Data Feed

Name: LEDOnMarketDataLast / LEDOnMarketDataBidAsk

Updated:
Oct 22, 2015 1:00 PM File ‐ Setting and Display of NT Priority removed from Indicator

Updated:
Jun 11, 2015 7:05 AM File ‐ Intermittent bug fix when both LEDs should be black.

Updated:
Jun 8, 2015 2:40 PM File Text ‐ Local clock adjustment removed. Not needed when using Dimension 4, as suggested by eDanny

Updated:
Jun 7, 2015 6:10 PM File Text ‐ Local clock adjustment value reset to zero on first bar of session.

Updated:
April 28, 2015 9:15 AM File ‐ New Parameters ShowAgo, ShowBidAsk, ShowInstrument, ShowStats, and ShowTrade.

Updated:
April 25, 2015 12:28 PM File Text ‐ Explaination of negative time results and how now handled

Updated:
Apr 2, 2015 10:35 AM File and Text ‐ LEDOnMarketDataBidAsk LED on color LightBlue for Bid and Pink for Ask.

Updated:
Apr 1, 2015 10:55 AM File ‐ Time Formatting

Author: James R. Walker

The NT Control Center shows when NT is connected to a data feed. It is possible to be connected but not receiving exchange trade information. These indicators show how long ago the last trade, bid, and ask were reported by the exchange.

Two dots at the midpoint of the session's range show when new information arrives. The dots look like LEDs flashing on and off .

Calculated data ages are only meaningful if the local time is accurate.

Setting the local computer's clock and keeping its time accurate: The Indicators DataFeedMonitor, LEDOnMarketDataLast, and LEDOnMarketDataBidAsk do calculations based on the current time from the local computer's clock.

LEDOnMarketDataLast

As each new trade is seen by this Indicator in its OnMarketData() method, the LED that was Red turns Black and the one that was Black turns Red. The speed of the flashing indicates the rate at which trade information is being received. The maximum flash rate is determined by the chart's Display update interval Property. The LEDs will only flash when live data is received.

The instrument's name is shown below the LEDs. Below that is the word Trade, then below that is how long ago the trade was executed on the exchange. The time will be in the form HH:MM:SS.F. If the HH:MM are both zero then only the seconds will be shown as :SS.F. This time will continue to be updated until the next trade is seen. After 20 seconds both LEDs will be off but Ago time in the text will continue to update. Finally, the number of trades and volume per second when the trade was executed.

LEDOnMarketDataBidAsk

As each new Bid or Ask is seen by this Indicator in its OnMarketData() method, the LED that was Pink/LightBlue turns Black and the one that was Black turns Pink for Ask and LightBlue for Bid. The speed of the flashing indicates the rate at which trade information is being received. The maximum flash rate is determined by the chart's Display update interval Property. The LEDs will only flash when live data is received.

The instrument's name is shown below the LEDs. Below that are the words Bid or Ask, then below that is how long ago the Bid/Ask was made on the exchange. The time will be in the form HH:MM:SS.F. If the HH:MM are both zero then only the seconds will be shown as :SS.F. This time will continue to be updated until the next Bid/Ask is seen. After 20 seconds both LEDs will be off but Ago time in the text will continue to update. Finally, the number of Bids per second, number of Asks per second, Bid Volume per second, and Ask Volume per second at the time of the last Bid/Ask is shown.

These Indicators can used with any Real‐Time Data provider. For a comparison of providers see NinjaTrader Help Topic: Historical & Real‐Time Data. Check column Real‐Time Timestamp if you are not using Continuum or Rithmic. Continuum or Rithmic provide Native Timestamps which means the exchange provides a trade's Timestamp. If Local, the trade's Timestamp is created by NinjaTrader from the time it receives the trade information.

NinjaTrader 7 truncates the seconds fraction of the Timestamp, so the value only has accuracy to the second. NinjaTrader 8 will have accuracy to the millisecond.

Both Indicators set NinjaTrader's Process Priority to High.

Parameters:

HideIndicatorName ‐ Prevent display of indicator's name at top of chart if true. Default is false.
Leftmost_LED_Offset ‐ Is the number of bars to the right of the current bar that the LEDs will be drawn. Text begins one bar to the left of this offset. LEDOnMarketDataBidAsk Default is 15. Right Side Margin should be about 225.
Show[Ago BidAsk Instrument Stats Trade] ‐ Select which text below the LEDs is shown. The Defaults are all true.
TextColor ‐ Color used to draw text on chart. Default = LimeGreen. It shows up well on White and Black backgrounds.
The Chart Property "Right side margin" should be set to at least 100, if one indicator used and 200 if both are used in a chart.

Created By Jim W.
NinjaTrader Version 7
File Size 24.4 KB
Create Date 02/02/2015
# of Downloads 390

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.