Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent selection of objects drawn by indicators

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

    Prevent selection of objects drawn by indicators

    How can I disable the selection of all objects? When I click on an object drawn by my indicator, it selects all objects on the chart. 6.5 didn't select any. Since I'm handling mouse clicks, I really don't want you to select any either. But at the very least, I'd expect this functionality to only select the one I clicked on, and not all of them. And as a developer, I'd like the ability to prevent the selection of any object period (because as the developer I know that I'm handling object selection).

    Last edited by douggreen; 10-20-2009, 06:03 AM. Reason: Add picture of problem

    #2
    In your script Initialize() method, please add this:


    AllowRemovalOfDrawObjects = false;

    Then recompile and try again.
    RayNinjaTrader Customer Service

    Comment


      #3
      Wish it worked!

      That's a nice solution ... but didn't work. This appears to be a new variable. Is it documented somewhere? And tested?

      I put: AllowRemovalOfDrawObjects = false;

      in my Initialize() for NT7 indicator, recompiled, created a new chart, added the indicator, and selected the objects just as before.

      Comment


        #4
        Originally posted by douggreen View Post
        That's a nice solution ... but didn't work. This appears to be a new variable. Is it documented somewhere? And tested?

        I put: AllowRemovalOfDrawObjects = false;

        in my Initialize() for NT7 indicator, recompiled, created a new chart, added the indicator, and selected the objects just as before.
        It will be documented...its work in progress.

        - I create a simlple indicator that drew a single line on the chart
        - When I select this line, it did not highlight the plot line as per your image
        - Can you create a simple indicator that can demonstrate behaviour and post it ?
        RayNinjaTrader Customer Service

        Comment


          #5
          Test

          It doesn't get any simpler than this...
          Attached Files

          Comment


            #6
            Originally posted by douggreen View Post
            It doesn't get any simpler than this...
            Thanks. I guess I misunderstood your original point.

            - This indicator just has a plot
            - Your issue is then that you do NOT wish to have the plot display highlight boxes when the plot is selected

            Is this correct?
            RayNinjaTrader Customer Service

            Comment


              #7
              I draw with all of the following, and I don't want any of these to be selectable. Currently, even with your solution, the only thing that is NOT selectable is the text from DrawTextFixed.

              Test.Set(1093);
              DrawLine("Test", CurrentBar, 1092, 0, 1092, Color.Black);
              DrawText("Test.Text", "Test", 0, 1091, Color.Black);
              DrawTextFixed("Test.Fixed", "Test Fixed", TextPosition.BottomRight);

              Additionally, I don't want the bars themself to be selectable eutger because that interferes with my indicators handling of the mouse; my mouse handling is to check if the user clicks on a highlight I've drawn around several bars.

              Comment


                #8
                Originally posted by douggreen View Post
                I draw with all of the following, and I don't want any of these to be selectable. Currently, even with your solution, the only thing that is NOT selectable is the text from DrawTextFixed.

                Test.Set(1093);
                DrawLine("Test", CurrentBar, 1092, 0, 1092, Color.Black);
                DrawText("Test.Text", "Test", 0, 1091, Color.Black);
                DrawTextFixed("Test.Fixed", "Test Fixed", TextPosition.BottomRight);

                Additionally, I don't want the bars themself to be selectable eutger because that interferes with my indicators handling of the mouse; my mouse handling is to check if the user clicks on a highlight I've drawn around several bars.
                Thanks for clarifying, now I understand. Unfortunately, there is no way to disable chart object selection at any level.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  This is REALLY gonna screw up our product. Since the chart selection is a new feature, could you Pretty-Please give me an option to disable it. Thanks!

                  Comment


                    #10
                    Originally posted by douggreen View Post
                    This is REALLY gonna screw up our product. Since the chart selection is a new feature, could you Pretty-Please give me an option to disable it. Thanks!
                    Send a mail to our support email address, reference this post and make it attention to me. Would want to understand your requirements before I can comment on what may be possible.
                    RayNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    601 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    347 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
                    559 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    558 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X