Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set background color for different panels

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

    Set background color for different panels

    Hello,
    I have a chart with 3 panels each with a different Data series and I'd like to set the background color to be a different color for each panel.
    I'll attach an image of something I found online which is what I want to do but I can't find how to do it.
    All I can find related to this is BackBrush but I can't seem to get the same effect as the attached image. I get a left margin that I can't control and if i scroll right the BackBrush color only covers the bar background area but not the actual panel. How could this be done? Thank you.

    #2
    Hello Catalon,

    There are not any internal methods or properties documented by NinjaTrader to accomplish this.

    It would be necessary to add 3 instances of an indicator to each panel, that render a rectangle in OnRender(), that is not in the hit test, to achieve this.

    The SampleCustomRender indicator shows how to render a rectangle.

    Below are links to the help guide.


    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Catalon View Post
      Hello,
      I have a chart with 3 panels each with a different Data series and I'd like to set the background color to be a different color for each panel.
      I'll attach an image of something I found online which is what I want to do but I can't find how to do it.
      All I can find related to this is BackBrush but I can't seem to get the same effect as the attached image. I get a left margin that I can't control and if i scroll right the BackBrush color only covers the bar background area but not the actual panel. How could this be done? Thank you.
      A quick and easy way to do this would be to use the Repeater Indicator. Just change the start time to 00:00:01 and leave the endtime to 00:00:00
      Attached Files

      Comment


        #4
        Originally posted by cutzpr View Post

        A quick and easy way to do this would be to use the Repeater Indicator. Just change the start time to 00:00:01 and leave the endtime to 00:00:00
        That is perfect, thank you.

        Comment

        Latest Posts

        Collapse

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