Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trend Channel drawing object

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

    Trend Channel drawing object

    Can price labels be added to this tool?

    #2
    On the right edge or on the line itself.

    Comment


      #3
      Hello JTizz,

      Thanks for your post.

      As I understand, you are posting in the Indicator Development forum because you are curious how you can develop this functionality, correct? This forum is meant for NinjaScript development, so if you are just asking about general usage and not how this functionality can be created, I would recommend positing in the Platform Technical Support forums instead.

      These modifications are possible. The indicator uses its own custom rendering to draw the Trend Channel, so I would recommend adding your drawing code there.

      The SampleCustomRender indicator which comes with NinjaTrader 8 describes how SharpDX rendering can be used, and you can use RenderTarget.DrawTextLayout to draw the label. We suggest referencing the documentation below while reviewing the example as there are important items to consider when using SharpDX.

      https://ninjatrader.com/support/help..._rendering.htm

      Also which may be helpful, I have some code that in a Labeled Lines Drawing Tool that draws a label on the line using SharpDX. This script can give some further insight for how text can be drawn to create a label.

      https://ninjatraderecosystem.com/use...-drawing-tool/

      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

      We look forward to assisting.
      Last edited by NinjaTrader_Jim; 04-15-2020, 07:40 AM.

      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