Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adjusted Labeled Horiztonal Line

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

    Adjusted Labeled Horiztonal Line

    Hello,

    I'm trying to adjust a current available indicator (Labeled Horizontal Line), or see if there is another indicator that would be useful to me. https://ninjatraderecosystem.com/use...izontal-lines/

    I'm referencing this thread https://forum.ninjatrader.com/forum/...ne-in-strategy

    I am essentially just trying to get the label of the line to return the anchor price plus a fixed number. So Anchor Price + 1.25 = Label
    I was wondering if this is a simple quick edit as I have no background in C+ or if there is an available indicator that would fit my need.

    #2
    Hello delacr69,

    Welcome to the NinjaTrader forums!

    I'm not aware of an indicator that already allows you to add text to the end of the label, but you could certainly make these modifications.

    The string that holds the text that will be rendered is saved to the variable with the name '_priceFormat'. This is assigned a value on line 111. You can add to the string here.

    Below I am providing a link to a forum post with helpful resources and training videos on getting started with C# and NinjaScript programming.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the response!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      56 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      75 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      39 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      60 views
      0 likes
      Last Post PaulMohn  
      Working...
      X