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

The calculation of BlockVolume

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

    #16
    Wao, this really astonishes me! Thanks anyways.

    Seykool

    Comment


      #17
      Hi there!

      I was just using the Block Volume indicator and did a quick check on the value of indicator. If the indicator counts how much trades traded above a threshold (block size), I imagined that multiplying the count from the indicator by the Block volume size would give me a volume less than the Volume indicator.

      But to my surprise I got some cases where this simple math yield to almost twice the total volume of the bar.
      Is there something that I am missing?

      Thanks in advance,
      John
      Last edited by NeoTraderBot; 03-09-2024, 04:38 PM.
      NeoTraderBot
      NinjaTrader Ecosystem Vendor - NeoTraderBot

      Comment


        #18
        Originally posted by NeoTraderBot View Post
        Hi there!

        I was just using the Block Volume indicator and did a quick check on the value of indicator. If the indicator counts how much trades traded above a threshold (block size), I imagined that multiplying the count from the indicator by the Block volume size would give me a volume less than the Volume indicator.

        But to my surprise I got some cases where this simple math yield to almost twice the total volume of the bar.
        Is there something that I am missing?

        Thanks in advance,
        John
        Hello John,

        Thank you for your note.

        What were the parameters you used for the Block Volume indicator? The countType determines whether the value is the number of trades or the block trade volume; I'd like to make sure of which value you were using. Please provide an example or snippet so we may see how you performed your calculation and better assist you.
        • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
        ​I look forward to your reply.
        Emily C.NinjaTrader Customer Service

        Comment


          #19
          Hi Emily!

          Sure. Let's do a step-by-step on the printscreen I attached.
          Let's take the bar of 11th March, 2024 on MNQ 06-2024 [Timeframe 1 min]. I included the block volume using a block size of 30 and trade volume. From the Data box, we can see that was counted 58 trades above the block size of 30. This would be 58*30 = 1740 micro-contracts.But looking at the VOL indicator we can see just 513 micro-contracts traded in that bar.
          So, I believed that Block volume count multiplied by the block size (using volume) would always be less or equal to the volume traded.
          Is there a detail that I'm not taking into consideration about the calculation or the future market?

          Thank you in advance for your support.
          Attached Files
          NeoTraderBot
          NinjaTrader Ecosystem Vendor - NeoTraderBot

          Comment


            #20
            Originally posted by NeoTraderBot View Post
            Hi Emily!

            Sure. Let's do a step-by-step on the printscreen I attached.
            Let's take the bar of 11th March, 2024 on MNQ 06-2024 [Timeframe 1 min]. I included the block volume using a block size of 30 and trade volume. From the Data box, we can see that was counted 58 trades above the block size of 30. This would be 58*30 = 1740 micro-contracts.But looking at the VOL indicator we can see just 513 micro-contracts traded in that bar.
            So, I believed that Block volume count multiplied by the block size (using volume) would always be less or equal to the volume traded.
            Is there a detail that I'm not taking into consideration about the calculation or the future market?

            Thank you in advance for your support.
            Thank you for that example. I see now what you are trying to multiply, though that doesn't make logical sense with how the indicator is calculated when set to Volume. When the Block Volume indicator is set to "Volume" for the Count property, the value displayed by the indicator is the total volume for trades that had a quantity equal or greater than the Block trade size. Your screenshot is showing that there was at least one trade of 30 or more contracts, and the total volume of trades equal to or greater than 30 contracts was 58 on that bar.

            Here is another example I created in my platform focusing on a single bar that had 1 trade at the Block trade size of 30. I added the Block Volume indicator with a Block trade size of 30 and plotted it both as Trades and as Volume to show the difference between each setting:
            For more information regarding the Block Volume indicator, please see the help guide page here:
            If you'd like to review the source code and logic for how the indicator is calculated, you could open up the script in the NinjaScript Editor.

            I hope this helps to clarify. Please let us know if we may be of further assistance.
            Emily C.NinjaTrader Customer Service

            Comment


              #21
              Originally posted by NinjaTrader_Emily View Post

              Thank you for that example. I see now what you are trying to multiply, though that doesn't make logical sense with how the indicator is calculated when set to Volume. When the Block Volume indicator is set to "Volume" for the Count property, the value displayed by the indicator is the total volume for trades that had a quantity equal or greater than the Block trade size. Your screenshot is showing that there was at least one trade of 30 or more contracts, and the total volume of trades equal to or greater than 30 contracts was 58 on that bar.

              Here is another example I created in my platform focusing on a single bar that had 1 trade at the Block trade size of 30. I added the Block Volume indicator with a Block trade size of 30 and plotted it both as Trades and as Volume to show the difference between each setting:
              For more information regarding the Block Volume indicator, please see the help guide page here:
              If you'd like to review the source code and logic for how the indicator is calculated, you could open up the script in the NinjaScript Editor.

              I hope this helps to clarify. Please let us know if we may be of further assistance.

              It really doesn't make sense to multiply like I did. I saw in indicator's source code that when using the CountType parameter set to "Tick" that would return the number of trades above the block volume.

              Thank you for your explanation, Emily!
              NeoTraderBot
              NinjaTrader Ecosystem Vendor - NeoTraderBot

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rhyminkevin, Today, 04:58 PM
              3 responses
              48 views
              0 likes
              Last Post Anfedport  
              Started by iceman2018, Today, 05:07 PM
              0 responses
              5 views
              0 likes
              Last Post iceman2018  
              Started by lightsun47, Today, 03:51 PM
              0 responses
              7 views
              0 likes
              Last Post lightsun47  
              Started by 00nevest, Today, 02:27 PM
              1 response
              14 views
              0 likes
              Last Post 00nevest  
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              50 views
              0 likes
              Last Post futtrader  
              Working...
              X