Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Chart plot area width changing
Collapse
X
-
Chart plot area width changing
I have a custom indicator that draws graphics on a chart. In order to align the graphics properly, I have to set the width of the chart window, and the spacing between bars in the chart to just the right values. I have no problem doing this, except that Ninja 7 is taking upon itself the task of changing the margin between the vertical axis labels and the right edge of the chart window when I change the axis scaling and then restore it by clicking the "F" box that appears. I normally have my chart window set so that the plot area has a width of 1035 pixels. When Ninja changes the margin, it leaves the window size unchanged and reduces the plot area to 1027 pixels. On rare occasions, I have gotten the plot width back to 1035 by rescaling the vertical axis and clicking "F", but I cannot figure out how to make that happen when I want it to. The only way I have found to restore the chart is to reload a template, and that restarts my real time indicator, so that is not viable. The alternative is to resize the window every time Ninja decides to change the width of the plot area. Something should be done to keep Ninja from resizing the plot area -
Hello,
This is standard NinjaTrader design is it will always adjust the scale to fit the highest high and lowest low in the chart.
Your indicator should be coded in a manor that it complient with this and adjusts its objects based on this. Unless your overriding Plot which it seems like you might be doing.
Your only other option is to set the scale manually and put it in Fixed mode. This is the F in the top right hand corner fo the chart. Do not click the F however doing this sets you back to automatic. By asjusting the scale this puts you into fixed mode and the charts scale will not change. If you need you can move the chart up and down by holding down shift on the keyboard and left clicking and draging in the price axis on the right.
Let me know if I can be of further assistance.BrettNinjaTrader Product Management
-
The automatic vertical scaling to match the highest high and the lowest low is not the problem. The problem is that if I manually change the vertical scale and the "F" box appears, when I click on the box to return to automatic vertical scaling, the horizontal scaling is being inconsistently changed. I just tried about 20 times to reproduce the problem before I could make it happen. Earlier I could not avoid it. If the behavior were consistent, I could easily accommodate the "standard design." I have no idea what makes it happen at some times, and not at others.
Comment
-
Hello,
When you say this I need some more specifics on this, any chance you can post reproduce steps or a video of this occurring as I'm not quite clear what you mean by this.when I click on the box to return to automatic vertical scaling, the horizontal scaling is being inconsistently changed.
Let me know if I can be of further assistance.BrettNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
61 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment