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.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
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) :