![]() |
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
|
|||||||
| Market Analyzer Support for the NinjaTrader Market Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 0 times in 0 posts
|
I've noticed that if an indicator outputs a large integer number it gets rounded up in MA (say, 12345678 would be displayed as "12M"). While it's nice for most users, in my case all decimal places are meaningful and I'd like to see a complete number like it was in NT 6.5. Can I adjust this setting somewhere? Thanks!
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
I will check into this with development. Thanks for your patience.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Please add this to your code above or below OnBarUpdate() public override string FormatPriceMarker(double price) { return price.ToString(); } http://www.ninjatrader.com/support/h...ricemarker.htm Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Member
Join Date: May 2010
Location: India
Posts: 92
Thanks: 1
Thanked 0 times in 0 posts
|
Hello Brett,
Thanks for the link provided by you, which facilitates selection of number of decimals. I was looking out for this facility for Market Analyser window and got it now. Now I am able to set Bliinger Band Position (0 to 100% Range) to zero decimals. I have a two questions on this. 1) I have an indicator using the 'public enum Selector'. I prefer to select a different value for the number of decimals for each enum selectior option. If I put the same code in each of the option with a different value for each enum selector option, I am getting error. // Original code // Please add this to your code above or below OnBarUpdate() // FormatPriceMarker method of a custom indicator public override string FormatPriceMarker(double price) { // Formats price values to 4 decimal places return price.ToString("N4"); } Can I write something like: // Formats price values to 'int variable' decimal places int decimals; decimals = 0; // choose the number of decimals for that enum selector option. return price.ToString("N"+str(decimals); 2) This method can be used for third party Indicators only. Editing of Indicators supplied with NT7 is not possible and making another with each of the supplied / used indicators cannot be done by ordinary users and very difficult for others with coding skills. Is it not possible to supply each system indicator, where the number of decimals can be chosen by user with the properties? Thanks for your time & prompt responses as always. murthymsr |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Yes this should be possible. Also, I will send this recomendation to development. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Brett, this does show all the digits. As a remark, it's not backwards compatible and breaks the code in NT6.5, but that's small potatoes.
|
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Yes this is correct as this is new to NinjaTrader 7 from 6.5 and would be a code breaking change. Glad you got your Ninja7 up and running however. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#8 | |
|
Member
Join Date: May 2010
Location: India
Posts: 92
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
Thanks, it was possible. i have defined a int variable which decides the number of decimals. In each enum selection option, I could have a different number of decimals in MA display. murthymsr |
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Excellent! Thanks for posting back for others to benefit!
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rounding | pgabriel | General Programming | 1 | 08-05-2010 02:09 PM |
| Rounding to tick... | Sleeping Troll | General Programming | 7 | 05-05-2010 09:13 AM |
| Rounding Up | suprsnipes | General Programming | 2 | 03-09-2010 08:00 AM |
| rounding of values | anniebee | Suggestions And Feedback | 4 | 06-21-2009 12:09 AM |
| Quick MA an alternative to Juirk MA | Ninja B | Indicator Development | 5 | 01-09-2009 07:14 AM |