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 teaburnreviews, Today, 02:55 AM
    0 responses
    2 views
    0 likes
    Last Post teaburnreviews  
    Started by lucyb, Today, 02:43 AM
    0 responses
    2 views
    0 likes
    Last Post lucyb
    by lucyb
     
    Started by flonkle, Today, 01:19 AM
    1 response
    8 views
    0 likes
    Last Post flonkle
    by flonkle
     
    Started by JerryWar, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post JerryWar  
    Started by JacobRiogers, Today, 01:00 AM
    0 responses
    7 views
    0 likes
    Last Post JacobRiogers  
    Working...
    X