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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      30 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X