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

Volumetric

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

    Volumetric

    Hi, is there a way to loop through the volumetric API to get the bid/ask values that show on the chart for each level of a bar?
    Last edited by shildebrand324; 10-23-2022, 07:59 AM.

    #2
    Figured it out.

    for (double i = Low[0]; i <= High[0]; i += TickSize) {
    iAskValue = i;
    iBidValue = i;
    askValue = barsType.Volumes[CurrentBar].GetAskVolumeForPrice(i);
    bidValue = barsType.Volumes[CurrentBar].GetBidVolumeForPrice(i);
    Print(Time[0] + " Max Bid: " + bidValue + " Value: " + iBidValue);
    Print(Time[0] + " Max Ask: " + askValue + " Value: " + iAskValue);
    }​​


    But is it there a way to get limit contact size? Since contracts traded is a completely useless number because it does not take into account buyers and sellers that passively are buying and selling contracts with limit orders in large numbers.
    Last edited by shildebrand324; 10-23-2022, 08:00 AM.

    Comment


      #3
      Is there a way to get limit contact size? Since contracts traded is a completely useless number because it does not take into account buyers and sellers that passively are buying and selling contracts with limit orders in large numbers.

      Comment


        #4
        Hello shildebrand324,

        Thanks for your post.

        There are no supported or documented methods or functions available to get the individual contracts that make up a each level when using Volumetric bars. You would be able to get the total volume or a volume at a specific price, such as with GetTotalVolumeForPrice().

        There are also no supported methods for knowing what type of order the orders are, such as limit orders. You would only be able to access the volume.

        See this help guide page for more information about Volumetric bars: https://ninjatrader.com/support/help...tric_bars2.htm

        Let me know if I may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Are the numbers that show on the volumetric charts the actual fill amounts? Any way to get lot size?

          Comment


            #6
            Hello shildebrand324,

            Thanks for your note.

            As stated in post # 4, "You would be able to get the total volume or a volume at a specific price, such as with GetTotalVolumeForPrice()."

            Please review this help guide page linked below and linked in post # 4 to see the methods and properties that the VolumetricBarsType exposes.

            Order Flow Volumetric Bars:​ https://ninjatrader.com/support/help...flow_volumetri c_bars2.htm

            Let me know if I may assist further.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Some of my trading buddies are able to zoom out on volumetric charts and shows boxes around imbalances, but mine won’t do this. Any ideas?

              Comment


                #8
                Hello shildebrand324,

                Thanks for your note.

                You could zoom in on a section of the Volumetric bars on a chart by clicking the Zoom In button on the Chart Toolbar and highlighting the area you want to zoom in on.

                See this demonstration video: https://brandonh-ninjatrader.tinytak...Ml8yMDU0Mzc5Mg

                If this does not resolve your inquiry, please send me a screenshot demonstrating what your trading buddies are able to see that you cannot see and they steps they take so I may investigate this further.

                Let me know if you have further questions.
                Brandon H.NinjaTrader Customer Service

                Comment


                  #9
                  He is able to zoom out and make the numbers disappear and see the imbalances as boxes. I'm not able do this.

                  Click image for larger version  Name:	image.png Views:	0 Size:	7.2 KB ID:	1230671

                  Comment


                    #10
                    Hello shildebrand324,

                    Thanks for your note.

                    I am unable to replicate this behavior on a Volumetric chart on my end after testing each Volumetric Data Series setting. I cannot find exactly which Volumetric setting this would be or if there is a specific Volumetric setting that allows for this to occur.

                    That said, please have your trading buddy save a Chart Template for their chart and send that chart template to you to use as well as the exact steps they take to reproduce this behavior.

                    This help guide could be viewed for instructions on how to save a Chart Template: https://ninjatrader.com/support/help...AChartTemplate

                    The saved chart template could be found in the Documents\NinjaTrader 8\templates\Chart folder. You could copy the chart template file they send you to this same folder to add it to your platform.

                    After adding the template to the Documents\NinjaTrader 8\templates\Chart folder, restart NinjaTrader to ensure changes take effect.

                    See this help guide page for information about loading a chart template onto a chart: https://ninjatrader.com/support/help...AChartTemplate

                    Please let me know if I may assist further.
                    Brandon H.NinjaTrader Customer Service

                    Comment


                      #11
                      He is using 4k monitor, so that must be it.

                      Comment


                        #12
                        He says he's using the default chart template, and is able to drag the bottom time axis and it zooms in that much. I have a video, but the forum won't allow me to upload it

                        Comment


                          #13
                          Hello shildebrand324,

                          Thanks for your note.

                          You can try having your friend create and save a Chart Template for their chart and they could send that chart template to you to use as well as the exact steps they take to reproduce this behavior.

                          You could copy the chart template file they send you to the Documents\NinjaTrader 8\templates\Chart folder to add it to your platform. Then use the steps and settings provided by your friend to try and replicate the behavior.

                          This behavior could be due to them having a 4k monitor as you have mentioned and may not be reproducible.

                          Let me know if I may assist further.
                          Brandon H.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by cre8able, 02-11-2023, 05:43 PM
                          3 responses
                          231 views
                          0 likes
                          Last Post rhubear
                          by rhubear
                           
                          Started by frslvr, 04-11-2024, 07:26 AM
                          8 responses
                          111 views
                          1 like
                          Last Post NinjaTrader_BrandonH  
                          Started by stafe, 04-15-2024, 08:34 PM
                          10 responses
                          44 views
                          0 likes
                          Last Post stafe
                          by stafe
                           
                          Started by rocketman7, Today, 09:41 AM
                          3 responses
                          8 views
                          0 likes
                          Last Post NinjaTrader_Jesse  
                          Started by traderqz, Today, 09:44 AM
                          2 responses
                          5 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Working...
                          X