Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 03-05-2017, 10:54 AM   #1
fx.practic
Senior Member
 
Join Date: Dec 2008
Location: Ukraine
Posts: 476
Thanks: 109
Thanked 43 times in 34 posts
Default 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 is offline  
Reply With Quote
The following user says thank you to fx.practic for this post:
Old 03-05-2017, 08:02 PM   #2
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 7,896
Thanks: 121
Thanked 1,744 times in 1,641 posts
Default

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.
NinjaTrader_ChelseaB is offline  
Reply With Quote
Old 03-06-2017, 01:39 AM   #3
fx.practic
Senior Member
 
Join Date: Dec 2008
Location: Ukraine
Posts: 476
Thanks: 109
Thanked 43 times in 34 posts
Default

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 at 04:14 AM.
fx.practic is offline  
Reply With Quote
Old 03-06-2017, 04:17 AM   #4
gubbar924
Member
 
Join Date: Aug 2011
Posts: 92
Thanks: 19
Thanked 30 times in 23 posts
Default

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
gubbar924 is offline  
Reply With Quote
The following 2 users say thank you to gubbar924 for this post:
Old 03-06-2017, 04:33 AM   #5
fx.practic
Senior Member
 
Join Date: Dec 2008
Location: Ukraine
Posts: 476
Thanks: 109
Thanked 43 times in 34 posts
Default

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 at 12:58 PM.
fx.practic is offline  
Reply With Quote
Old 03-14-2017, 11:14 AM   #6
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 7,896
Thanks: 121
Thanked 1,744 times in 1,641 posts
Default

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.
NinjaTrader_ChelseaB is offline  
Reply With Quote
The following user says thank you to NinjaTrader_ChelseaB for this post:
Old 01-13-2018, 01:08 AM   #7
crokusek
Member
 
Join Date: Oct 2014
Posts: 69
Thanks: 8
Thanked 12 times in 10 posts
Default

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.
crokusek is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New indicator not seen/selectable in chart mgregor Indicator Development 3 05-20-2015 08:36 AM
FR: Chart tabs should be draggable between windows molecool Version 8 Beta 5 05-09-2015 12:22 PM
ACCOUNTs NOT SELECTABLE on Chart TRADER ginx10k Platform Technical Support 2 03-30-2015 02:46 PM
how to make draw item non-selectable tulanch Indicator Development 2 10-29-2014 10:37 AM
Howto make text non selectable blarouche Indicator Development 2 09-22-2009 09:54 AM


All times are GMT -6. The time now is 07:49 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.