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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X