NexusFi: Find Your Edge


Home Menu

 





How to make a line that is unselectable?


Discussion in NinjaTrader

Updated
    1. trending_up 2,149 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 khmodel 
Mountain Lakes NJ
 
Experience: Beginner
Platform: NinjaTrader, MultiCharts
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 10 since May 2010
Thanks Given: 46
Thanks Received: 7

In cases where many calls to drawLine() or drawRay() have been made on a chart, it can become cumbersome when those lines get accidentally selected while the user tries to interact with other GUI features. Can anyone suggest a way to programmatically draw a line that cannot be selected accidentally in NinjaTrader 7.x? Thank you in advance for your thoughts.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557




Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 khmodel 
Mountain Lakes NJ
 
Experience: Beginner
Platform: NinjaTrader, MultiCharts
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 10 since May 2010
Thanks Given: 46
Thanks Received: 7

To answer my own post in a very brief way:

1. in NT7, set chart properties > Allow the selection or drag/drop of chart series = false

2. override the "Plot()" method and use "unsupported by NinjaTrader" coding techniques which involve accessing various objects within "ChartControl" and, if I am not mistaken, GDI drawing methods.

Despite the "unsupported by NinjaTrader" status of the required coding methods, there are apparently many examples available to download for educational purposes. Here is one that I found very useful (see David Lean's posts #1,7, and 9 especially) :

How do you convert Price to Y axis values? - NinjaTrader Support Forum


Started this thread Reply With Quote
Thanked by:




Last Updated on November 12, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts