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 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.)
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #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.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


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

        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.
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          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 cre8able, Today, 03:20 PM
              0 responses
              6 views
              0 likes
              Last Post cre8able  
              Started by Fran888, 02-16-2024, 10:48 AM
              3 responses
              47 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Started by martin70, 03-24-2023, 04:58 AM
              15 responses
              114 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by The_Sec, Today, 02:29 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by jeronymite, 04-12-2024, 04:26 PM
              2 responses
              32 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X