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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
42 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
29 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
46 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment