Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw.Rectangle help with specific dimensions?
Collapse
X
-
Draw.Rectangle help with specific dimensions?
I'm testing with NinjaScript to Draw.Rectangle because I need to set it at a specific dimension/placement on the chart and add text to it is this possible? I only see examples for sizing it according to bar sizes so not sure how I can get around thatTags: None
-
Hello MatthewLesko,
The drawing objects are going to be locked to using bars ago/times and prices. To render a rectangle using specific dimensions or coordinates you would need to use OnRender.
The indicator sample SampleCustomRender which comes with the platform demonstrates drawing on the chart based on X/Y coordinates.
You can read about OnRender in the following links:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 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
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment