Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawTextFixed Alternatives.

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

    DrawTextFixed Alternatives.

    Hi Guys, I am looking for alternatives to drawtextfixed which is limited in the fact that cannot control the background colors of each individual line. For example my code below draws text down the right hand side using \n for each new line. What I'd like to know is how does one use plots to do exactly the same thing for better control anywhere on the chart? For example what would be the code to plot the first line and what would be the second to start me off?

    Thanks
    DJ


    1. My code

    DrawTextFixed("InfoPanel1", "TF " + TF.ToString("N1"), this.InfoPanelPosition1,Color.White, largeFont, Color.Transparent, Color.Transparent, 0);
    DrawTextFixed("InfoPanel2", "\n" + "ES: " + ES.ToString("N1"),this.InfoPanelPosition1,Color.Li me, largeFont, Color.Transparent, Color.Transparent, 0);
    DrawTextFixed("InfoPanel3", "\n\n" + "6E: " + euro.ToString("N1"), this.InfoPanelPosition1,Color.Red, largeFont, Color.Transparent, Color.Transparent, 0);

    #2
    Hi DJ,

    For overriding the Plot() method: Our support for this is limited to pointing out the existing custom plot sample. You can see this in all installations with Tools > Edit NinjaScript > Indicator > CustomPlotSample.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    651 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X