NexusFi: Find Your Edge


Home Menu

 





How to make a line that is unselectable?


Discussion in NinjaTrader

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




 
Search this Thread

How to make a line that is unselectable?

  #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?
Deepmoney LLM
Elite Quantitative GenAI/LLM
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 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,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,534




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 Twitter 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? - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Started this thread Reply With Quote
Thanked by:




Last Updated on November 12, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts