Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw Ractangle
Collapse
X
-
Draw Ractangle
How can i select area (rectangle-with right click to start) over the chart and get the data of the candles inside the rectangle in ninja script?Tags: None
-
Hello jignesh142,
Using all supported methods, you would need to draw a normal rectangle, then loop through the drawing objects collection on a bar update or market event and get the end points.
Below is a link to the help guide with an example.
By using the drawing objects StartBarsAgo and EndBarsAgo, you will have a range of bars
If would want this to trigger specifically when drawn, this would requiring making a copy of the drawing tool and then modifying this. For NinjaTrader 7, custom drawing tools are possible but are not fully supported by NinjaTrader Support. However, these are supported and expanded on with more documented tools in NinjaTrader 8.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
150 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
302 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
243 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
174 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment