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 f.saeidi, Today, 12:11 AM
    0 responses
    3 views
    0 likes
    Last Post f.saeidi  
    Started by Graci117, Yesterday, 11:40 PM
    0 responses
    6 views
    0 likes
    Last Post Graci117  
    Started by BIOK.NT, Yesterday, 01:56 PM
    2 responses
    11 views
    0 likes
    Last Post BIOK.NT
    by BIOK.NT
     
    Started by i2ogu3, Yesterday, 11:31 PM
    0 responses
    6 views
    0 likes
    Last Post i2ogu3
    by i2ogu3
     
    Started by RDTrader16, Yesterday, 10:19 PM
    0 responses
    11 views
    0 likes
    Last Post RDTrader16  
    Working...
    X