![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2010
Location: Pittsburgh, PA, USA
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
can the right side scale margin be reduced or hidden on ninjatrader7?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello 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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2010
Location: Pittsburgh, PA, USA
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
I see - thanks for the clarification. Unfortunately there is no way to configure this. The closest thing is setting the axis color property to transparent. This will also affect the X axis and other areas where text is used on chart.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Jan 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
|
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Jerry1,
What value did you set this to? It's set by pixels so you might need to try a larger value.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Oct 2010
Posts: 4
Thanks: 1
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
LeeTo - Welcome to the NinjaTrader forums and thank you for the suggestions. You may consider changing the font size of the axis through the chart's Right Click > Properties screen.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
|
![]() 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 |
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi 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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#12 | |
|
Junior Member
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
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 |
|
|
|
|
|
|
#13 | |
|
Junior Member
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Jul 2009
Posts: 143
Thanks: 5
Thanked 11 times in 7 posts
|
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 at 08:00 PM.
|
|
|
|
|
The following 3 users say thank you to Ricam for this post: |
|
|
|
#15 | |
|
Member
Join Date: Apr 2010
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
This margin widening is happening each time I use the chart trader. Why is this happening?
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Set margin | MasterSepp | Miscellaneous Support | 10 | 02-04-2010 12:54 PM |
| After a margin call... | Eddy-2d | Automated Trading | 1 | 12-01-2009 09:11 AM |
| Right side margin | blaporte | Charting | 2 | 11-08-2007 01:42 PM |
| Right Side Margin | tquinn | General Programming | 1 | 01-07-2007 02:35 AM |
| Simulator margin | Gar | Miscellaneous Support | 3 | 02-02-2005 08:42 AM |