Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Rectangle/Histogram on chart
Collapse
X
-
Tags: None
-
Hello,
Thank you for your note.
Try the following in OnBarUpdate() of an indicator:
DrawRectangle("rectangle", true, 0, Close[0]-TickSize, -20, Close[0]+TickSize, Color.Aqua, Color.Aqua, 10);
DrawRectangle(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, Color areaColor, int areaOpacity)
Below is a link to the help guide on DrawRectangle().
http://www.ninjatrader.com/support/h...wrectangle.htmChelsea B.NinjaTrader Customer Service
-
Unfortunately DrawRectangle() does not lock rectangle on border chart; histogram have to stand still with chart scroll.
Comment
-
-
Change "-20" to be long enough into the future. Try something like "-100" or a larger negative absolute value. You just have to make it long enough, and it will lock to the right of the chart, simply because it is long enough.Originally posted by Peperlizio View PostUnfortunately DrawRectangle() does not lock rectangle on border chart; histogram have to stand still with chart scroll.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
596 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment