![]() |
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 2010
Location: London, U.K.
Posts: 174
Thanks: 29
Thanked 1 time in 1 post
|
Hello,
Please see attached snapshot. How can I change the format of the highlighted column from doubles to integers? Thank you, Stopped
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
Stopped,
I am happy to assist you. How are you defining "Days Ago"? Is this a custom indicator? Please let me know if I may assist further.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2010
Location: London, U.K.
Posts: 174
Thanks: 29
Thanked 1 time in 1 post
|
Hi AdamP,
Thanks for your help. Yes, it is a DataSeries from one of my custom indicators. It looks as if Market Analyzer uses the same number format as the one that is applied to the price of the instrument. Ideally, I would like to transform those numbers to integers, as they are easier to read. Let me know if you need more details. Stopped
|
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,188
Thanks: 178
Thanked 301 times in 259 posts
|
Quote:
|
|
|
|
|
|
The following user says thank you to sledge for this post: |
|
|
|
#5 |
|
Senior Member
Join Date: Jun 2010
Location: London, U.K.
Posts: 174
Thanks: 29
Thanked 1 time in 1 post
|
Hi sledge,
Thank you for your contribution. I have changed the code in my custom indicator, using the Math.Round method that you suggested, but still do not get the results in Market Analyzer: // Momentum bool downArrow = false; bool upArrow = false; if (ndConfirmed || (momentum[1] >= 0 && (pdReversed || lPrice[0] < sLine[1]))) { momentum.Set(-1); momSince.Set(Math.Round((double) 1, 0)); downArrow = true; } elseif (pdConfirmed || (momentum[1] <= 0 && (ndReversed || hPrice[0] > rLine[1]))) { momentum.Set(1); momSince.Set(Math.Round((double) 1, 0)); upArrow = true; } else { momentum.Set(momentum[1]); momSince.Set(Math.Round(momSince[1] + 1, 0)); } Any more ideas from you, AdamP or anyone else? Perhaps I am using the Math.Round method in the wrong place of the code? Thanks in advance, Stopped ![]() |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2010
Location: London, U.K.
Posts: 174
Thanks: 29
Thanked 1 time in 1 post
|
Hello again,
I just found a way around to solve this problem by creating a new custom indicator (myDaysAgo) which basically calls my original custom indicator containing the momSince dataseries and then transforms its 'price' format using the FormatPriceMarker() method. Is there, however, a simple, more elegant way to achieve this same results?? I felt I had to resort to creating a new indicator because the original one had several plots, whose number formats I did not want to modify. Thanks in advance, Stopped
Last edited by Stopped; 01-29-2012 at 03:54 AM.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transfering data from Multicharts data format to Ninja Trader data format | alex_inditraders | General Programming | 7 | 03-01-2012 03:20 AM |
| need help creating new column | mikesmen40 | Market Analyzer | 1 | 03-01-2011 08:40 PM |
| % change column | badasan | Market Analyzer | 4 | 11-14-2009 07:47 PM |
| Converting eSignal OnDemand output file format to NT historical data input format | AnotherTrader | Connecting | 0 | 09-15-2009 07:21 AM |
| Comments Column | cipher4d | Market Analyzer | 1 | 08-02-2008 11:43 AM |