Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 bmartz, 03-12-2024, 06:12 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    13 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X