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 NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    128 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X