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 burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X