NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 10-01-2010, 11:06 AM   #1
cjstrader5
Junior Member
 
Join Date: Feb 2010
Location: Pittsburgh, PA, USA
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default right margin

can the right side scale margin be reduced or hidden on ninjatrader7?
cjstrader5 is offline  
Reply With Quote
Old 10-01-2010, 11:10 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-01-2010, 12:15 PM   #3
cjstrader5
Junior Member
 
Join Date: Feb 2010
Location: Pittsburgh, PA, USA
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
cjstrader5 is offline  
Reply With Quote
Old 10-01-2010, 01:25 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-18-2010, 08:09 AM   #5
jerry1
Junior Member
 
Join Date: Jan 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_RyanM View Post
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
I wanted to move the chart to the left so I changed the right margin;there was no change in the margin. Can you suggest a method to accomplish this?
jerry1 is offline  
Reply With Quote
Old 10-18-2010, 08:14 AM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Jerry1,

What value did you set this to? It's set by pixels so you might need to try a larger value.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-18-2010, 08:28 AM   #7
jerry1
Junior Member
 
Join Date: Jan 2009
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_RyanM View Post
Hi Jerry1,

What value did you set this to? It's set by pixels so you might need to try a larger value.
Thanks; since the default is small I changed it to 8 which had no noticeable effect. I then went to 150 and that did the job.
Thanks again
Jerry
jerry1 is offline  
Reply With Quote
Old 02-25-2011, 01:18 AM   #8
LeeTo
Junior Member
 
Join Date: Oct 2010
Posts: 4
Thanks: 1
Thanked 0 times in 0 posts
Default

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
LeeTo is offline  
Reply With Quote
Old 02-25-2011, 08:14 AM   #9
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 03-03-2012, 06:06 PM   #10
John01
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
Default 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
John01 is offline  
Reply With Quote
Old 03-05-2012, 07:10 AM   #11
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 03-05-2012, 06:56 PM   #12
John01
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_RyanM View Post
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,

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
John01 is offline  
Reply With Quote
Old 03-05-2012, 07:06 PM   #13
John01
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by John01 View Post
Ryan,

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
I should add that the addition of pixel width in that space is about as random as any computer function can be. I tweak the strategy a bit, hit Refresh NinjaScript, change my parems, run an opt, etc. Sometimes it gets wider, sometimes it stays the same. But it never returns to normal on its own.
John01 is offline  
Reply With Quote
Old 03-05-2012, 07:55 PM   #14
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 143
Thanks: 5
Thanked 11 times in 7 posts
Default 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 at 08:00 PM.
Ricam is offline  
Reply With Quote
The following 3 users say thank you to Ricam for this post:
Old 04-11-2012, 07:31 PM   #15
syxforex
Member
 
Join Date: Apr 2010
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

This margin widening is happening each time I use the chart trader. Why is this happening?

Quote:
Originally Posted by Ricam View Post
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.
syxforex is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 06:17 AM.