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 positive and negative strength in Ninjascript

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

    Volumetric positive and negative strength in Ninjascript

    Hey guys,
    Is there a series or something for the volumetric positive and negative strength bars? So, when it's colored brightly green, how can this be detected in Ninjascript?

    #2
    Hello PN720,

    Thanks for your post.

    Here is a link to all of the available Ninjascript information from the Volumetric bars: https://ninjatrader.com/support/help...tric_bars2.htm

    Can you clarify what your definition of strength bars are? Do you mean Positive and Negative delta?




    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,
      It's the 2 listed under the Volumetric Data Series (see attached). I didn't see it in the help link so maybe it's something I missed.
      If it's not available directly, can it be calculated in the strategy using the Strength sensitivity?
      Thanks.
      Attached Files

      Comment


        #4
        Or put it another way, I want to find a way to highlight the ones indicated by arrows via script. Based on the online help, NJT uses the strength sensitivity to shade bars over a gradient. How can I find the brightest ones?
        Attached Files
        Last edited by PN720; 04-05-2019, 10:06 AM.

        Comment


          #5
          Hello PN720,

          Thanks for your reply and clarifications.

          There is no direct way to pull which cell on which bar has the brightest color.

          You could grab the GetMaximumPositiveDelta() and GetMaximumNegativeDelta() values per bar and hold the highest and lowest in local variables and compare in that way to see if the bar has a new max or min which would correlate to the brightest color
          Paul H.NinjaTrader Customer Service

          Comment


            #6
            Paul,

            ​​​​​Ok, can you confirm if the strength sensitivity is a period value so if it's set to default 20, does that mean the highest positive/negative delta value in last 20 bars?
            If yes, what would be proper syntax for this in ninjascript?

            Comment


              #7
              Hello PN720,

              Thanks for your reply.

              From the help guide:

              "Strength sensitivity Sets how many gradient levels should be calculated to provide the buy / sell strength shading for the Volumetric bars and Bar Statistics, the default setting is 20. This is reset at every session break to ensure the gradient strength classifications easily comparable across various days market action." Reference, "Order Flow Volumetric Bars parameters": https://ninjatrader.com/support/help...etric_bars.htm
              Paul H.NinjaTrader Customer Service

              Comment


                #8
                but how can i get the value and the price level?
                Which is the formula? It's not clear for me

                Comment


                  #9
                  Hello xg5463,

                  Thanks for your post.

                  Have you reviewed the help guide page here? https://ninjatrader.com/support/help...tric_bars2.htm These are all of the methods and properties you can pull from the bar, everything else you will need to calculate from those values.
                  Paul H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by algospoke, Yesterday, 06:40 PM
                  2 responses
                  24 views
                  0 likes
                  Last Post algospoke  
                  Started by ghoul, Today, 06:02 PM
                  3 responses
                  15 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  46 views
                  0 likes
                  Last Post jeronymite  
                  Started by Barry Milan, Yesterday, 10:35 PM
                  7 responses
                  23 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by AttiM, 02-14-2024, 05:20 PM
                  10 responses
                  181 views
                  0 likes
                  Last Post jeronymite  
                  Working...
                  X