Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Two color custom indicators

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

    Two color custom indicators

    Hi everyone

    I have a custom indicator and I'd like to see the bars red when it's negative and blue when it's positive.
    How can I do that?
    Any reference or example please?

    Thank you

    #2
    BarColor = indicatorValue >= 0 ? Color.Red : Color.Blue;
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by averoos, Today, 05:33 AM
    0 responses
    1 view
    0 likes
    Last Post averoos
    by averoos
     
    Started by RobotSyndicate, Today, 04:27 AM
    0 responses
    4 views
    0 likes
    Last Post RobotSyndicate  
    Started by Ray12345, Today, 04:10 AM
    0 responses
    4 views
    0 likes
    Last Post Ray12345  
    Started by Behungr101, Today, 02:16 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by omermirza, Yesterday, 08:37 PM
    2 responses
    12 views
    0 likes
    Last Post NT-Roland  
    Working...
    X