Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
drawing bar
Collapse
X
-
drawing bar
hello. I have a code that when a condition is met it paints the bar with a color. All the bars where the condition is given are painted and that slows down my computer. How can I make it paint only the last bar where the condition occurs? thank youTags: None
-
Hello julifro,
If you re-use the tag name, this will move the drawing object instead of drawing a new object.
You can avoid drawing objects in historical data.
if (State == State.Historical)
return;
You can remove older drawn objects by their tag name with RemoveDrawObject().
Chelsea B.NinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
576 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment