Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make last trade green or red based on previous close?

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

    How to make last trade green or red based on previous close?

    If a stock closed yesterday at $10. And today it is trading at $11, I would like to see the $11 in green. And if it opens at $9, it would then show the last in red.

    Basically I want the last price to be green when trading above previous close, red when trading below previous close and black if no change has occurred.

    Anyone know how to do this in Ninja Trader Market Analyzer?
    Last edited by pyrotrader; 01-15-2014, 04:26 PM.

    #2
    Hello pyrotrader,

    Thanks for your post.

    It is not supported to do this, however, you may have luck using the following code in an indicator; replacing the color with the color of choice:

    BarsArray[0].BarsData.PriceMarkerColor = Color.Blue;
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by srtrader, 02-12-2025, 09:01 PM
    3 responses
    25 views
    0 likes
    Last Post rockmanx00  
    Started by bertochi, 02-14-2025, 05:25 PM
    2 responses
    30 views
    0 likes
    Last Post bertochi  
    Started by sclay115, 02-10-2025, 03:58 PM
    6 responses
    32 views
    0 likes
    Last Post sclay115  
    Started by Babbou72, Yesterday, 08:37 PM
    0 responses
    19 views
    0 likes
    Last Post Babbou72  
    Started by ethanguh, Yesterday, 08:34 PM
    0 responses
    9 views
    0 likes
    Last Post ethanguh  
    Working...
    X