Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X