Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing tool sample for newbies

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

    Drawing tool sample for newbies

    Hi,

    I need to develop a custom drawing tool, but I don't know the structure of a drawing tool. Could you show me a simple example to guide me through the process?

    I basically need to know how to click on the graph and at the point where it was clicked, draw a line for example.

    From a simple code, I can go looking and learning how to develop my drawing tool.

    Thanks​

    #2
    Hello Powerbucker,

    You may find this example of the custom line drawing object isolated to a new script helpful.


    Also, below is a link to the help guide.
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


    The OnMouseDown override method is where you can get the mouse point from the dataPoint.GetPoint().
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Great !!

      Is possible change the color of ChartAnchors of my drawing tool? I'd like to distinguish the initial anchor from the final one

      Thanks

      Comment


        #4
        Hello Powerbucker,

        Unfortunately, the anchor selection points are rendered by NinjaTrader in the core code which you are not able to modify.

        I'm not aware of a way to change the color of these.

        This thread will remain open for any community members that would like to provide advice or unsupported code.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by JohnS52, Today, 04:56 PM
        0 responses
        5 views
        0 likes
        Last Post JohnS52
        by JohnS52
         
        Started by brucerobinson, Today, 07:08 AM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by Dudley, Today, 09:52 AM
        2 responses
        12 views
        0 likes
        Last Post Dudley
        by Dudley
         
        Started by Johnny, Yesterday, 12:39 PM
        6 responses
        33 views
        0 likes
        Last Post Johnny
        by Johnny
         
        Started by Saronna, Today, 02:08 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X