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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      70 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      152 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X