Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rules for volumetric candles

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

    Rules for volumetric candles

    Hello,

    I would like to know what the rules are for displaying more or less dark colors on volumetric candles.
    Look at my screenshot
    Indeed, I have a strategy that needs this and I have to code it.

    Thank you.

    #2
    Hi Jodu, thanks for posting. I attached an example that highlights each level of the Volumetric bar chart that you can reference. The colors change based on the volume value. To install this, place the .cs file in Documents\NinjaTrader 8\bin\Custom\Indicators

    Please let me know if you have any questions on this material.
    Attached Files
    Last edited by NinjaTrader_ChrisL; 05-10-2022, 08:12 AM.

    Comment


      #3
      Sorry, but i can't see the cs file ???

      Comment


        #4
        I uploaded it to the original post.

        Comment


          #5
          Thanks for this example, but that's not what I want. Indeed, I want to know the rules which allow to color the boxes. Clearly, from what conditions the volumetric system decides to color the ask and bid boxes.

          Comment


            #6
            Hi jodu, The rule is the maximum volume value in the column gets the darkest color. You can find this value by iterating through GetMaximumVolume method in the Volumetric bar's library.



            Kind regards,
            -ChrisL

            Comment


              #7
              I don't think so because as you can see on the screenshot, the red boxes light up on small numbers but not on bigger ones.

              Comment


                #8
                Hi jodu, thanks for the follow up. The background color signifies which side is larger If the bid side is larger it will be green if the ask side is larger it will be red.

                Kind regards,
                -ChrisL

                Comment


                  #9
                  ok thank you for this info.
                  And what can you tell me about the intensity of the box?
                  Why are some darker than others?
                  How is the calculation done to determine this please?

                  thanks again.

                  Comment


                    #10
                    Hi jodu, thanks for the follow up. The opacity of the color depends on the highest volume level in the bar, or where the most volume occurred per price level in the bar. How it's done exactly is not known since the Volumetric Bartype code is closed source, the best reference would be the first example script I posted earlier.

                    Kind regards,
                    -ChrisL

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    599 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    345 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    558 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    558 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X