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 kujista, Today, 06:23 AM
    2 responses
    6 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by f.saeidi, Today, 08:03 AM
    0 responses
    4 views
    0 likes
    Last Post f.saeidi  
    Started by cre8able, 04-17-2024, 04:16 PM
    7 responses
    64 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Aviram Y, 08-09-2023, 09:04 AM
    11 responses
    299 views
    0 likes
    Last Post arjandezeeuw  
    Started by Christopher Leggit, 02-15-2024, 09:00 AM
    3 responses
    47 views
    0 likes
    Last Post rdtdale
    by rdtdale
     
    Working...
    X