Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing on the chart Market Delta blocks

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

    Drawing on the chart Market Delta blocks

    I would like to know how do you go about doing the spacing and drawing of the data as seen in the snapshot.
    I am using drawtext at the moment, but not sure how to do the spacing automatically for the Width of the item being drawn as in the volume data shown.
    Attached Files

    #2
    Hello,

    Thank you for the question.

    I believe what you see in the image is using the Plot override which is where you can draw basically whatever you want to. I believe that because the background boxes are not a single color, the DrawText would only be able to draw a single color background.

    If you are looking for the ability to draw what you want you would need to use the Plot override. There is an example of this included with the platform called CustomPlotSample. In the Misc region it shows how to use this override for drawing.

    Using DrawText, you can get similar results but if this is something that will keep adding to the chart, it would likely slow down after X amount of DrawText objects have been placed on the chart. This is another reason to use the Plot override for this type of drawing for efficiency.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    179 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X