Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BackColor for previous bar

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

    BackColor for previous bar

    Hi,

    I understand that BackColor sets the back color of the current bar.

    i.e. http://ninjatrader.com/support/helpG...?backcolor.htm

    I want to be able to set the BackColor of a HISTORICAL bar (rather than of the current bar).

    Is there a way to do this?

    Thanks.

    #2
    Hello,
    You can use BackColorSeries to change the color of historical bars based off of conditions of the current bar.
    For example:
    Code:
    if(Close[0] > Open [0]
    {
    BackColorSeries[5] = Color.Red; // Changes the bar 5 bars back from current bar to red when the Close of the current bar is greater than the Open.
    }
    For more information on BackColorSeries please see the following link: http://ninjatrader.com/support/helpG...olorseries.htm
    Cody B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Working...
    X