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 ScottW, Today, 06:09 PM
    0 responses
    2 views
    0 likes
    Last Post ScottW
    by ScottW
     
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Waxavi, 04-19-2024, 02:10 AM
    4 responses
    56 views
    0 likes
    Last Post sonia0101  
    Started by cmtjoancolmenero, Today, 03:58 PM
    0 responses
    9 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by Segwin, 05-07-2018, 02:15 PM
    11 responses
    1,779 views
    0 likes
    Last Post aligator  
    Working...
    X