Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
right margin
Collapse
X
-
Tags: None
-
I want to reduce or eliminate the numbers on the right scale (outside price chart) not the spacing between the price chart and the right scale margin.
Comment
-
Originally posted by NinjaTrader_RyanM View PostHello cjstrader5,
Yes, you can adjust the right side margin. Right click on chart > Properties > Set Right side margin to 0.
http://www.ninjatrader.com/support/h...properties.htm
Comment
-
Originally posted by NinjaTrader_RyanM View PostHi Jerry1,
What value did you set this to? It's set by pixels so you might need to try a larger value.
Thanks again
Jerry
Comment
-
hi
I just found here that scale margin cant be set. Could you consider adding this to next releeses please.
I found strange behavior if I use indicator on the same panel as chart is and setting scale to the left. Im getting unrounded numbers for volume also left margin is too wide. I solve it by using overlay scale justification for the volume. thanks
Comment
-
I am having a similar, but more extreme issue....
Here is what my chart looks like after a little strategy development.
The only fix I've found so far is to shut down the chart and bring up a new one, set it all up again.
Even when I do this, the new margin is unacceptable.
Thanks, John
Comment
-
Originally posted by NinjaTrader_RyanM View PostHi John,
Is your strategy setting margin by code? Or is using indicators that do this? Post the complete NinjaScript .zip here and we can take a look.
Thanks for the follow up.
The only indicator on the chart is the MAX stock with Ninja. Sometimes that causes my problem on its own, but the trouble happens much more quickly when strategy developing.
The strategy does nothing with the margins - it declares some doubles, some EMA functions, Countif's, MRO's, and such. Enters on limits and exits with profit targets and stops. And it plots nothing in the code.
Sometimes I wonder if I should overtly Math.Round all of my double values? Do you think that could cause this even if they are not plotted?
Thanks, John
Comment
-
Originally posted by John01 View PostRyan,
Thanks for the follow up.
The only indicator on the chart is the MAX stock with Ninja. Sometimes that causes my problem on its own, but the trouble happens much more quickly when strategy developing.
The strategy does nothing with the margins - it declares some doubles, some EMA functions, Countif's, MRO's, and such. Enters on limits and exits with profit targets and stops. And it plots nothing in the code.
Sometimes I wonder if I should overtly Math.Round all of my double values? Do you think that could cause this even if they are not plotted?
Thanks, John
Comment
-
The cause of crazy wide BORDERS alongside the price panels of a chart
The width of the BORDER (the space between the edge of the price panel and the edge of the window containing the price panel) is constrained, WHEN A CHART LOADS, to be a little wider than the widest PRICE MARKER that is displayed as the indicators on the chart are starting up..
Sometimes when an indicator first loads, a pricemarker will display an excessive number of decimal places that causes the price marker to be much wider than it should be. Then after the indicator becomes stable, the pricemarker reverts to a normal number of decimal places and normal width, so you won't even be aware that the price marker had ever been excessively wide.
But now, the damage has been done - the border of the chart has been set and is now "stuck" being excessively wide, to allow enough room for the extra wide pricemarker, that is not even there anymore..
The solution is to put code in your indicator to make sure that its pricemarkers can NEVER display an excessive number of digits -especially during the unstable period when the indicator is first starting. To diagnose the problem, you can PRINT the values of the series you are plotting during the first few bars to the output window to see if any of those outputs have excessive numbers of digits. There are a number of ways to suppress unnecessary digits, such as the Round function.Last edited by Ricam; 03-05-2012, 09:00 PM.
Comment
-
This margin widening is happening each time I use the chart trader. Why is this happening?
Originally posted by Ricam View PostThe width of the BORDER (the space between the edge of the price panel and the edge of the window containing the price panel) is constrained, WHEN A CHART LOADS, to be a little wider than the widest PRICE MARKER that is displayed as the indicators on the chart are starting up..
Sometimes when an indicator first loads, a pricemarker will display an excessive number of decimal places that causes the price marker to be much wider than it should be. Then after the indicator becomes stable, the pricemarker reverts to a normal number of decimal places and normal width, so you won't even be aware that the price marker had ever been excessively wide.
But now, the damage has been done - the border of the chart has been set and is now "stuck" being excessively wide, to allow enough room for the extra wide pricemarker, that is not even there anymore..
The solution is to put code in your indicator to make sure that its pricemarkers can NEVER display an excessive number of digits -especially during the unstable period when the indicator is first starting. To diagnose the problem, you can PRINT the values of the series you are plotting during the first few bars to the output window to see if any of those outputs have excessive numbers of digits. There are a number of ways to suppress unnecessary digits, such as the Round function.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
19 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment