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 techzeel, Today, 03:17 AM
    0 responses
    3 views
    0 likes
    Last Post techzeel  
    Started by guillembm, Today, 02:52 AM
    0 responses
    7 views
    0 likes
    Last Post guillembm  
    Started by Chuso, Yesterday, 03:41 AM
    2 responses
    10 views
    0 likes
    Last Post Chuso
    by Chuso
     
    Started by jtrade, 02-05-2009, 03:14 AM
    6 responses
    5,473 views
    0 likes
    Last Post Cocchu
    by Cocchu
     
    Started by XanderT, Today, 01:12 AM
    0 responses
    11 views
    0 likes
    Last Post XanderT
    by XanderT
     
    Working...
    X