Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Paint Horizontal Bands of Color on Indicator Background

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

    Paint Horizontal Bands of Color on Indicator Background

    Can you point me in the right direction for painting horizontal bands of color on the background of an indicator?

    I have an indicator and I'd just like to make it easier to see when the value is in a bullish, neutral or bearish zone.

    The cutoffs between zones are fixed values.

    Thanks,

    #2
    Hello BarzTrading,

    Thanks for your post.

    Painting the background of a chart can be done with BackBrush. BackBrushes can be used to set the background historically. I've included documentation reference below.

    For example:

    BackBrushes[0] = Brushes.Blue;

    BackBrush - https://ninjatrader.com/support/help.../backbrush.htm

    BackBrushes - https://ninjatrader.com/support/help...ackbrushes.htm

    Please let us know if we can assist you further.

    Comment


      #3
      BackBrush paints vertical zones coinciding with each bar. I'm looking for horizontal zones of color.

      Can you apply multiple backbrushes per bar? Can you apply them to different vertical zones? If so, I'm not seeing it.

      Comment


        #4
        Hello BarzTrading,

        BackBrush colors the background, there can only be 1 brush set for bar slot.

        If you are trying to draw horizontal regions, please use Draw.Region or Draw.RegionHilightY

        Draw.Region - https://ninjatrader.com/support/help...raw_region.htm

        Draw.RegionHilightY - https://ninjatrader.com/support/help...highlighty.htm

        Let me know if this does not resolve your inquiry.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        86 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        125 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        64 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        117 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X