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.
    JesseNinjaTrader Customer Service

    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 wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      26 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, Yesterday, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      191 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,230 views
      0 likes
      Last Post xiinteractive  
      Working...
      X