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 hazylizard, Today, 08:38 AM
      0 responses
      4 views
      0 likes
      Last Post hazylizard  
      Started by Max238, Today, 01:28 AM
      5 responses
      42 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by giulyko00, Yesterday, 12:03 PM
      3 responses
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by habeebft, Today, 07:27 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Started by AveryFlynn, Today, 04:57 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X