NexusFi: Find Your Edge


Home Menu

 





How to make a line that is unselectable?


Discussion in NinjaTrader

Updated
    1. trending_up 1,690 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?
MC PL editor upgrade
MultiCharts
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
Help re translation of ninjascript to EL
NinjaTrader
How to plot a custom icon for crossover
NinjaTrader
Historical data for Kospi and Nikkei Index
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
84 thanks
What is Markets Chat (markets.chat) real-time trading ro …
53 thanks
HumbleTraders next chapter
39 thanks
1 Minute Man
22 thanks
Tao te Trade: way of the WLD
17 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,619 since Jun 2009
Thanks Given: 33,352
Thanks Received: 101,983




Mike



Join the free Markets Chat beta: Real-time Trading Insights

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 - Sitemap - Downloads - Top
no new posts