Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Open PnL display color change

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

    Strategy Open PnL display color change

    Hi,

    On my strategy, I plot open pnl at the top left conrner of the chart. At the moment, I am using Draw.TextFixed (), But I am trying to to change the color between green and red, when the open pnl number is positive and negative. Problem I am facing is, it changes the color of other texts as well. Is it possible to change the color of the figure only when it changes between negative and positive, leaving the other texts as it is?

    #2
    Hi asmmbillah, thanks for your post.

    Are you combining all of your text into one Draw.Text method call? If not you can target specific text with the "tag" parameter. If this does not resolve the issue, could you make a script that only has the text problem and send it to me? You may either post it here or send it to me via platformsupport at ninjatrader.com, reference ATTN ChrisL 2446979

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    78 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X