Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarBrush

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

    BarBrush

    Hello

    I have a question about BarBrush.
    I can color specific bars with BarBrush == Brushes.Blue for example.
    This works as I am going through historical bars from OnBarUpdate method when I load the indicator.

    But what I would like to do is coloring specific bars going backward once the bars are loaded.

    For example :
    Foreach(Bars b in BarsArray[0])
    {
    // if condition is true put the BarBrush == Brushes.Blue.
    }

    Is it possible to do that ?

    Thanks

    #2
    Hello,

    You can use BarBrushes[0] : http://ninjatrader.com/support/helpG...htsub=barbrush

    This adds a BarsAgo index to the property giving it historical abilities.

    I look forward to being of further assistance.

    Comment


      #3
      Fantastic.

      That was so simple I am wondering why I didn't think about this.

      Many thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      650 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X