When trying to snap to a bar (Snap Mode is Bar and Price), where the plot is close to the low/high of the bar, it's quite likely the drawing tool will snap to the plot rather than to the bar.
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
Prevent Snapping to Plot
Collapse
X
-
Prevent Snapping to Plot
Is it possible to have a plot that does not allow a drawing tool to snap to it?
When trying to snap to a bar (Snap Mode is Bar and Price), where the plot is close to the low/high of the bar, it's quite likely the drawing tool will snap to the plot rather than to the bar.Tags: None
-
Hi, thanks for posting.
The snapping will only apply to panels with a price series in them (with bars in the panel), and is not affected by plot lines. Can you share how you are setting up the chart and drawing tool so that a drawing tool snaps to a plot? In my test with an SMA applied in the price panel and a stochastic indicator applied in it's own panel, no snapping is applied when I draw a horizontal or vertical line.
Kind regards,
-ChrisLChris L.NinjaTrader Customer Service
-
Hi, thanks for your reply.
Could you send a video of the drawing tool snapping to an indicator plot? It is not happening in my tests. The drawing tools should only snap to the bar time stamp or the price at each tick level. I like to use the application called "Tiny Take" to send screen videos easily.
Kind regards,
-ChrisLChris L.NinjaTrader Customer Service
Comment
-
-
Hi, thanks for posting the video. I do see the drawing tool snapping now. Unfortunately this is the default behavior and there is no way to ignore the snapping unless the plot is rendered using SharpDX in the OnRender method. I attached an example on how to do this.
Best regards,
-ChrisLAttached FilesChris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Belfortbucks, Today, 09:29 PM
|
0 responses
3 views
0 likes
|
Last Post
by Belfortbucks
Today, 09:29 PM
|
||
Started by zstheorist, Today, 07:52 PM
|
0 responses
7 views
0 likes
|
Last Post
by zstheorist
Today, 07:52 PM
|
||
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
150 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
6 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
|
Comment