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 CaptainJack, 05-29-2026, 05:09 AM
              0 responses
              51 views
              0 likes
              Last Post CaptainJack  
              Started by CaptainJack, 05-29-2026, 12:02 AM
              0 responses
              32 views
              0 likes
              Last Post CaptainJack  
              Started by charlesugo_1, 05-26-2026, 05:03 PM
              0 responses
              99 views
              0 likes
              Last Post charlesugo_1  
              Started by DannyP96, 05-18-2026, 02:38 PM
              1 response
              177 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              170 views
              0 likes
              Last Post CarlTrading  
              Working...
              X