Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting the Total # of Contracts

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

    Getting the Total # of Contracts

    How can I get the Total # of Buy Contracts that are listed in the DOM ?

    (and how about Total # of Sell Contracts) ?

    thanks

    #2
    Hi NinjaCustomer,

    Thank you for posting.

    There is no correlation to use NinjaScript to access any info from the SuperDOM.

    Each Strategy is a separate instance that is used in the chart system.

    This will allow the script to use the historical data to calculate the entry/exit conditions that would be needed for the code.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      maybe I'm misunderstanding where I should be looking for the data...

      all I want to do is to code something using the same kind of data that the NinjaTrader BuySellVolume indicator uses... where does BuySellVolume get its data about the # of contracts bought and sold from? with what API calls? thanks

      Comment


        #4
        NinjaCustomer,

        The BuySellVolume indicator calculates if Close[0] >= GetCurrentAsk() or if Close[0] <= GetCurrentBid()
        It then uses this information to plot the indicator with the bid and ask volume.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Cal View Post
          NinjaCustomer,

          The BuySellVolume indicator calculates if Close[0] >= GetCurrentAsk() or if Close[0] <= GetCurrentBid()
          It then uses this information to plot the indicator with the bid and ask volume.
          And calculate ask or bid by price ...is there an API or subfunction to do that? Tnx

          Comment


            #6
            Ketron82,

            You can use OnMarketData() to use when bid or ask prices come in.
            http://www.ninjatrader.com/support/h...marketdata.htm

            Let me know if I can be of further assistance.
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Cal View Post
              Ketron82,

              You can use OnMarketData() to use when bid or ask prices come in.
              http://www.ninjatrader.com/support/h...marketdata.htm

              Let me know if I can be of further assistance.
              Many thanks...I opened another thread ("Simple Total FootPrint Bid x Ask") and now I'm testing the OnMarketData() function.
              Many thanks again

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              566 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              330 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              547 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              548 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X