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

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.
    Chris L.NinjaTrader Customer Service

    Comment


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

      Comment


        #4
        I uploaded it to the original post.
        Chris L.NinjaTrader Customer Service

        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
            Chris L.NinjaTrader Customer Service

            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
                Chris L.NinjaTrader Customer Service

                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
                    Chris L.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by PaulMohn, Today, 05:00 AM
                    0 responses
                    7 views
                    0 likes
                    Last Post PaulMohn  
                    Started by ZenCortexAuCost, Today, 04:24 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post ZenCortexAuCost  
                    Started by ZenCortexAuCost, Today, 04:22 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post ZenCortexAuCost  
                    Started by SantoshXX, Today, 03:09 AM
                    0 responses
                    16 views
                    0 likes
                    Last Post SantoshXX  
                    Started by DanielTynera, Today, 01:14 AM
                    0 responses
                    5 views
                    0 likes
                    Last Post DanielTynera  
                    Working...
                    X