Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to call custom drawing tool "LabeledLines" from other indicator

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

    How to call custom drawing tool "LabeledLines" from other indicator

    I am developing an indicator that needs to call a horizontal labeled lines in LabeledLines drawing tools.
    I want to draw vertical labeled lines with an input of time.
    The link of the drawing tool is https://ninjatraderecosystem.com/use...-drawing-tool/.

    How to call the function to draw labeled vertical line in the LabeledLines drawing tool?

    Thank you.

    #2
    Thanks for making your first post nixontateli!

    Thanks also for your interest in using this tool. I haven't added NinjaScript function overloads to this Drawing Tool so it currently cannot be called via NinjaScript. These could be added based off of the existing overloads from the Lines DrawingTool script. I intend on adding these at some point, but the file hosted is mostly a pet project and is not something I can prioritize over support tickets.

    Let me know if you have any other questions.
    JimNinjaTrader Customer Service

    Comment


      #3
      I use to develop indicator in metatrader mql. I am new to ninjatrader dan c#.
      I want to learn how to develop drawing tools and use that in indicator.
      Is there any reference? I need material to learn from.

      Thank you.

      Comment


        #4
        Hello nixontateli,

        DrawingTool documentation reference can be found here - https://ninjatrader.com/support/help...wing_tools.htm

        We do not have tutorial examples for DrawingTools but would recommend reviewing the source code for the existing Drawing Tools to understand how they are built and to offer further direction for building your own. To elaborate on the NinjaScript overloads which allow the DrawingTool to be used in indicators, this involves public static methods which are included in the DrawingTool. For the Lines DrawingTool script, this code is located after line 696.

        For learning C#, there is some light information in our NinjaTrader 7 help guide, but more robust materials can be found external to NinjaTrader.

        Basic Programming Concepts (NT7) - https://ninjatrader.com/support/help...g_concepts.htm

        DrawingTools also use SharpDX rendering which is reserved for advanced programmers. The SampleCustomRender indicator and the documentation below can help to introduce you to these concepts.

        Using SharpDX for custom rendering - https://ninjatrader.com/support/help..._rendering.htm

        Please let me know if there is anything else I can do to help.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X