• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make indicator plots on chart non-selectable and non-draggable

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

    How to make indicator plots on chart non-selectable and non-draggable

    Hello.

    In NT7 this.ZOrder = -1; in OnStartup() makes indicator on chart non-selectable and non-draggable.

    I tried same in NT8 when State == State.Historical - it don't work.

    Is the way to do it? (I mean exactly indicator plots - not draw objects.)

    #2
    Hello fx.practic,

    In NinjaTrader 7 setting the z-order for an indicator was not supported. However, I will research to see if there is a way to lock the plots of a script to make these non-selectable.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank You, I'm wait with impatience!

      As for my - it's just absolute necessary: if there are a lot of indicators plots on chart, each second mouse click select indicator, each fourth click opens "Indicators" dialogue, each tenth click drag indicator to somewhere.
      Last edited by fx.practic; 03-06-2017, 04:14 AM.

      Comment


        #4
        if its for your own personal use, would something as simple as setting AllowSelectionDragging=false work for you?

        https://ninjatrader.com/support/help...properties.htm

        Comment


          #5
          Hah! gubbar924 that's exactly what I need, thanks a lot!

          This work for me:

          else if( State == State.DataLoaded )
          {
          ChartControl.Properties.AllowSelectionDragging = false;
          }

          NT8 have so many checkboxes in different places ))

          I honestly tried to search in manual very different variants of *drag* and *select* - but search engine don't search parts of words.

          2 NT support #1: I still sure, it is useful to have possibility to select ability and drag ability separately for each indicator inside of it's code.

          2 NT support #2: May be, due to a significant increase in the volume of documentation, It can be useful make some kind of advanced search features in online NT8 documentation?
          Last edited by fx.practic; 03-09-2017, 12:58 PM.

          Comment


            #6
            Hello fx.practic,

            From my understanding setting ChartControl.Properties.AllowSelectionDragging will not be on a per indicator or per plot basis and would be for all items added to that chart.

            I was not able to find a way to control this on a per plot or per indicator basis and I have submitted a feature request on your behalf for the NinjaTrader Development to consider adding this functionality to a future version of NinjaTrader.

            This feature request is being tracked with ID #SFT-2005.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Omg. this makes a huge difference in render speed as well when switching charts or dragging.
              For customers with lots of plots or drawn shapes this feels like a new graphics card.

              It could be the "hit test" code within graphics card that causes the slowness since I'm on a low end NVIDIA GeForce 210.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by E-Viper87, Today, 02:50 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_PatrickG  
              Started by diddyp1990, Today, 01:28 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Paul  
              Started by dariuszszyc, Today, 09:08 AM
              8 responses
              32 views
              0 likes
              Last Post Nicolas
              by Nicolas
               
              Started by pman777, Today, 12:08 PM
              2 responses
              6 views
              0 likes
              Last Post pman777
              by pman777
               
              Started by Sadat, Today, 09:09 AM
              5 responses
              22 views
              0 likes
              Last Post NinjaTrader_JoshG  
              Working...
              X