Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draggable UI element on chart that can move along the price axis
Collapse
X
-
Thanks, NinjaTrader_Jesse for the reply. I had a look at it. It seems interesting but I need something that can be attached to the price bar. The UI in this case is not moving as the price bar moves. What I want to achieve is something similar to the draggable UI in the chart trader using which we can adjust the price. Any chance we can get access to how it is implemented?
Comment
-
Hello albinjn,
That would be up to you to design if you wanted the control to move in a specific way. That would involve working with the controls positioning and also using mouse events to know when its being dragged and what its x/y coordinates mean in contrast to the chart scale. That would not really be something which I can suggested a specific resource for, you can research how to position WPF windows which is a similar concept to how the control is being manipulated in the script. Its Top and Left properties can be used for positioning.
The ChartControl and ChartScale objects have methods to do x/y conversions to times or prices:
The chart trader is not an area where you could have a draggable control, you could instead position controls within the chart traders grid to make a similar looking UI with buttons or other WPF controls. To have something draggable would require putting that control inside the charts UserControlCollection like the drawing tool tile indicator.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment