Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Volume-like bars on the right of a chart

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

    Volume-like bars on the right of a chart

    Does anyone know how I can create horizontal bars like the ones in the attached picture?

    I have a CSV with calculations based on certain prices and want to display them in the chart.

    Thanks!
    Click image for larger version

Name:	NinjaTrader_XNbVzlEwUG.png
Views:	205
Size:	16.3 KB
ID:	1161200

    #2
    Hello aarons34,

    Thank you for the post.

    You would need to use OnRender for this type of drawing. You could load your data from file into the format you want and then use OnRender to display the data. The data points could be converted from prices/volumes to Y/X values.

    A good starting point is the indicator SampleCustomRender, that demonstrates the basics of rendering and using the panel. You can see the following link for some additional samples of converting values.



    To make the display you pictured you would need to use rectangles that are drawn from the right of the chart to the X location for the given volume. You would need to come up with how you wanted to calculate the width of the rectangle based on the volume. The rectangles can be placed by converting the Price to a Y value.

    Another item to see would be the VolumeProfile indicator, after running for a while that would look similar but on the left side.



    I look forward to being of further assistance.

    Comment


      #3
      Jesse-

      Thanks for the suggestion! it works great; now I just need to figure out resource intensive is to draw all these rectangles

      Learning curve on how to manipulate the Volume Profile indicator seems steeper to me

      Cheers

      Comment


        #4
        Jesse- To close, the loop. Your suggestion works like a charm, thank you!

        Comment

        Latest Posts

        Collapse

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