PDA

View Full Version : Market Analyzer columns - format decimal places?


adamus
08-16-2010, 09:28 AM
Is there any way I can tell the Market Analyzer to display the indicator values with the same number of decimal places as the market price?

e.g. I've got ATR on EURUSD which displays 0.014 but I would like it to display 0.0140 because the EURUSD is quoted that way - 1.3312 or even 1.3312'5 actually.

Thanks

NinjaTrader_Austin
08-16-2010, 09:41 AM
adamus, what settings are you using for your indicator columns and for the pip value (Tools -> Options -> Data)? I have mine set to TenthPip, and my indicators are showing the correct number of decimal places. Is this a custom ATR indicator you're using?

adamus
08-16-2010, 04:44 PM
Hi Austin,

I see what you see - what I'm asking is, how can I make the display show trailing zeros? I would prefer to see 0.0180 than 0.018.

Do you see what I mean?

NinjaTrader_Austin
08-16-2010, 04:56 PM
adamus, yes, I do see what you mean. Unfortunately I'm not sure why my MA column displayed the decimals with extra precision. I will look into this and get back to you tomorrow.

NinjaTrader_Austin
08-17-2010, 01:26 PM
adamus, unfortunately this is unsupported. As a workaround, you could create a StringSeries and then read that value (formatted however you wish) into the Market Analyzer.

// in variables
private StringSeries myStringSeries;

Initialize()
{
myStringSeries = new StringSeries(this);
}
OnBarUpdate()
{
myStringSeries.Set(value.ToString("####.000##"); // or however else you want to format the number
}
You'd also have to expose your StringSeries (http://www.ninjatrader.com/support/forum/showthread.php?t=4991) to access it in the Market Analyzer.

adamus
08-17-2010, 03:39 PM
OK, I'll give that a try. Thanks.