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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      18 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      27 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      15 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      22 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X