Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time and Sales

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Time and Sales

    I'm interested in working with the information on Time and Sales, is there a sample code available?

    #2
    Hello,

    It is possible to work with market depth data in the OnMarketDepth() event. You can pull any state contained within a MarketDepthEventArgs object. For more information on working with market depth, please see the links below:

    http://www.ninjatrader.com/support/h...arketdepth.htm

    http://www.ninjatrader.com/support/h...heventargs.htm

    Also, the reference sample below should shed some more light on accessing Level II data:

    http://www.ninjatrader.com/support/f...ead.php?t=3478

    Please let me know if I can assist further.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      thank you for your reply

      Regarding the Links you referred me to, I want to get this right... Are Price and Volume, the Last Price the instrument sold for, and the amount of shares/ contracts of that sale?
      Operation.Update/Insert/Remove... What exactly those actions represent?

      Comment


        #4
        Hello,

        You are correct about Price and Volume. Note that this information specifically represents the last traded price and volume provided by your data feed.

        In this context, Operation is a property of MarketDepthEventArgs objects. You can use Operation.Insert, Operation.Remove, and Operation.Update when building your own Level II book. Please note that this property applies to NinjaScript in NinjaTrader 8, and will not apply to your script developed for NinjaTrader 7.
        Dave I.NinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        83 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        65 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        57 views
        0 likes
        Last Post CarlTrading  
        Working...
        X