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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      156 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      90 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      140 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X