Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about the DrawingToolTile indicator native to NT.

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

    Question about the DrawingToolTile indicator native to NT.

    Hello.

    I noticed THIS release note that added the drawing tile indicator.

    I count 10 total drawing tools that will show up on chart when on screen, shown in the chart image.

    However, I note that in the script, in the OnRender() method, there are 33 tools in the ordered list under the variable 'ordered.' THis can be seen in the image labeled SCRIPT.

    I'd like to save a copy of this indie, so that I can modify it to suite my needs if possible. I'd like to create my own list of tools to display, mainly from the list that is present. HOwever, this script may be slightly over my head, so wondering if it may be simple enough to modify?

    Two questions.
    1. Is it possible to modify this saved copy I'd like to create, so that I can create my own custom list of drawing tools I'd like to display? If so, is it a simple change that can be explained?
    2. One tool that is not present is the 'Remove All Objects' trash bin. Would it also be possible to add this to the list so that I can add it to my custom display?
    Attached Files

    #2
    Hello forrestang,

    Thanks for your post.

    When you select the indicator, you can left-click on the row "Drawing tools" which is collapsed by default and this will allow you to configure any of the drawing tools you wish and would include any customized tools you may have added. I've attached a screenshot that shows (most) everything selected and the tool tile on the chart which is set by the "number of rows" you select in the indicator.

    Click image for larger version

Name:	Forrestang-3.PNG
Views:	419
Size:	78.6 KB
ID:	1135050

    I believe you could customize the code to add "Remove all objects" but I have not tried this myself. I would suggest not adding this due to the ease with which you would remove ALL drawing objects which is not recoverable. Going through the drawing icon and selecting Remove all objects is not that many clicks and it clearly would be done with purpose rather than perhaps accidentally clicking on the wrong tile icon.

    Comment


      #3
      Wow, I'm an idiot. I didn't even notice it was collapsed.

      You raise a fair point about the accidental removal, but it does offer a prompt in the case it is accidentally clicked. But I use it often, as its just a habit I've gotten into.

      I currently use THIS toolbar that is an add-on. I use the delete-all often. The toolbar itself has some issues, as it disables chart-trader if I use the Ninjascript editor(which is daily), and also has a few other bugs. So looking for something to replace it.

      Comment


        #4
        Just a follow up, I was attempting to copy this indie out so I can play with it, and it seems to be structurally different than others. For example, it doesn't have the auto-generated content at the bottom labeled as:
        Code:
        #region NinjaScript generated code. Neither change nor remove.

        Comment


          #5
          Hello forrestang,

          Thanks for your reply.

          Correct it does not have the Ninjascript wrappers for using the indicator in the market analyzer or a strategy or another indicator as this indicator is a chart only use.

          Comment


            #6
            Originally posted by forrestang View Post
            2. One tool that is not present is the 'Remove All Objects' trash bin. Would it also be possible to add this to the list so that I can add it to my custom display?
            If anyone figures out how to do this, please share. I would like to add the 'Remove All Objects' to the tool bar as well.
            Thanks much.

            Comment


              #7
              Originally posted by zacharydw00 View Post
              If anyone figures out how to do this, please share. I would like to add the 'Remove All Objects' to the tool bar as well.
              Thanks much.
              You probably know it but i use a hot key combination to delete all objects : CTRL+ALT+D. It works great for me.

              Comment


                #8
                Thanks, but I'm not a big fan of hot keys, especially with NT. I makes it easier to accidentally do something unintended, especially if another program takes focus away.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                597 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                343 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                555 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X