NexusFi: Find Your Edge


Home Menu

 





How to make a line that is unselectable?


Discussion in NinjaTrader

Updated
    1. trending_up 2,230 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Iran Deal "In Review" at 87% on Deadline Day - …
Prediction Markets & Event Contracts
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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,577




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