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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      42 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      52 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      33 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      91 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      54 views
      0 likes
      Last Post PaulMohn  
      Working...
      X