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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      563 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      329 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X