Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Name for Plots?

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

    Custom Name for Plots?

    Hello! I appreciate the incredible feedback in this forum.

    I created an indicator that allows a user to create eight separate horizontal lines based on time frame and candle position. Currently those lines are labelled Line 1, Line 2, etc... is there a way to accept user entered labels for the line that then display in the Data Box?

    I understand how to accept user input in the form of text but am wondering how I would apply it to specific plots?

    Thank you

    #2
    Hello benjamin$,

    Are you using Draw.HorizontalLine()?

    The DataBox is only going to show plots from using AddPlot(), so use this instead and set the Values[plot index][barAgo index] to where you want the line to appear.

    You can use the text from the public string input (using the NinjaScriptProperty attribute) to set as the Plots[plot index].Name in State.DataLoaded.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello benjamin$,

      Are you using Draw.HorizontalLine()?

      The DataBox is only going to show plots from using AddPlot(), so use this instead and set the Values[plot index][barAgo index] to where you want the line to appear.

      You can use the text from the public string input (using the NinjaScriptProperty attribute) to set as the Plots[plot index].Name in State.DataLoaded.
      https://ninjatrader.com/support/help.../nt8/plots.htm
      Awesome! Thank you very much. It works

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      627 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      359 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      562 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X