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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X