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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      252 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      161 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      165 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      251 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      203 views
      0 likes
      Last Post CarlTrading  
      Working...
      X