Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Disable indicator selection by clicking on custom rendered objects.
Collapse
X
-
Hello MisterTee,
Thanks for your notes.
You could search the NinjaTrader 8 help guide for those words as fx.practic mentioned.
I have also added links to those help guide pages below.
OnRender(): https://ninjatrader.com/support/help...l?onrender.htm
IsInHitTest: https://ninjatrader.com/support/help...
Leave a comment:
-
MisterTee, just search in the official NT8 manual: https://ninjatrader.com/support/help...l?log_tab2.htm
OnRender() - https://ninjatrader.com/support/help...htsub=OnRender
IsInHitTest - https://ninjatrader.com/support/help...ub=IsInHitTest
Leave a comment:
-
Hi!
Both of the links from NinjaTrader_Kate are now broken.
Are there new links to this now?
thankx
Leave a comment:
-
Hello fx.practic,
Thank you for your post.
If you would like to prevent plots from being selectable, you could force the indicator rendering to only happen without hit testing passes.
Code:protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { if(!IsInHitTest) // Use IsInHitTest to avoid rendering for hit test passes base.OnRender(chartControl, chartScale); // Call base OnRender() method to paint defined Plots. }
OnRender() - https://ninjatrader.com/support/help...s/onrender.htm
IsInHitTest - https://ninjatrader.com/support/help...sinhittest.htm
Please let me know if I can be of further assistance.
Leave a comment:
-
Disable indicator selection by clicking on custom rendered objects.
Hello.
I am creating an indicator with the wide areas filled by colors (sessions) via method only.
And I found that clicking on the filled area
initiates indicator selection (and prevents scrolling, for example).
While clicks inside non-filled area don't select indicator (please, see the video: https://www.screencast.com/t/1UD3sexJG)
The question: How to disable indicator selection by clicking on custom rendered objects?
Is there another way, then uncheck "Allow the selection of drag/drop of chart series
"
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
148 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Leave a comment: