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

Cumlative Bid/Ask

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

    Cumlative Bid/Ask

    Does anyone know the formula to grap the cumlative Bid and Ask in the DOM?

    -Thanks

    #2
    velocity,

    Check the thread for the cumulative delta below. The GomCD3.5 indicator has a method that you can record bid/ask data - I don't know if is this what you are looking for..



    astra

    Comment


      #3
      no, I am looking for the total sum of the bid and ask on the DOM.

      Example x = sum(bid) and y=sum(ask)
      Last edited by velocity; 06-09-2009, 12:02 PM.

      Comment


        #4
        You would have to accumulate the book yourself. http://www.ninjatrader-support2.com/...ead.php?t=5965
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          has anyone done this and is willing to share the code?

          Comment


            #6
            Originally posted by velocity View Post
            has anyone done this and is willing to share the code?
            see attached.. i just modified the samplemarketdepth example to sum the bid and ask values. lines 142-151 contain the main logic.
            Attached Files

            Comment


              #7
              Originally posted by auspiv View Post
              see attached.. i just modified the samplemarketdepth example to sum the bid and ask values. lines 142-151 contain the main logic.
              I've imported this twice , but it doesn't show up on the indicator list ???
              At least the Zip file name .

              Comment


                #8
                The name of that indicator will show up as SampleMarketDepth.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by T2020 View Post
                  I've imported this twice , but it doesn't show up on the indicator list ???
                  At least the Zip file name .
                  i think the indicator will be imported as "SampleMarketDepth" in the indicator list.

                  Comment


                    #10
                    OK ,I see . Thank you both .

                    Comment


                      #11
                      Auspiv,

                      Thank you so much for adding the code. But I have a question for you.

                      See attachment.

                      -Thanks again.
                      Attached Files

                      Comment


                        #12
                        Originally posted by velocity View Post
                        Auspiv,

                        Thank you so much for adding the code. But I have a question for you.

                        See attachment.

                        -Thanks again.
                        i think this has to do with the fact that the CME now provides 10 ask and bid levels. NT does not display these extra levels yet.

                        if you want to limit it to the first few levels, you can change the logic. replace ask[bid]Rows.Count with how ever many levels you want (keeping in mind the index starts at zero, so if you just want the first 5 levels, replace askRows.Count with 5)
                        Code:
                        for(idx = 0; idx < askRows.Count; idx++)

                        Comment


                          #13
                          Thank you very much auspiv.

                          Comment


                            #14
                            Thanks again, It worked like a charm. Really do appreciate the help.

                            Comment


                              #15
                              you're all welcome.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              172 responses
                              2,279 views
                              0 likes
                              Last Post sidlercom80  
                              Started by Irukandji, Yesterday, 02:53 AM
                              2 responses
                              17 views
                              0 likes
                              Last Post Irukandji  
                              Started by adeelshahzad, Today, 03:54 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post adeelshahzad  
                              Started by Barry Milan, Yesterday, 10:35 PM
                              3 responses
                              13 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by WeyldFalcon, 12-10-2020, 06:48 PM
                              14 responses
                              1,431 views
                              0 likes
                              Last Post Handclap0241  
                              Working...
                              X