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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    104 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    52 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    34 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    38 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    74 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X