Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator for Data Box only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hello NinjaTrader_Emily,

    I duplicated the indicator into a new one, called jtBarInfo2 (attached).

    Here are the changes in jtBarInfo2:
    • IsOverlay = false;
    • Commented out ShowTransparentPlotsInDataBox = true;
    • Changed the Brushes for the plots from Transparent to various colors.
    In the screen capture below, both jtBarInfo and jtBarInfo2 are on the chart, with setting to display Ticks. As you can see, the original with Transparent Brushes show the decimal values (2 digits after the decimal point) whereas the jtBarInfo2 with colors show whole numbers for tick ranges and the Up-Down-Doji value. (The highlighted bar is the example, at about 21:00.) And, of course, you can see the plots of the jtBarInfo2 in the indicator panel (between the price and ATR).

    I hope that helps! Thanks again for taking a look. As I said before, the correct information is displayed either way, so this isn't a big deal. But, as you can see, if set to Ticks, the whole number format is much easier to read.

    Kind regards,
    Matt


    Click image for larger version

Name:	image.png
Views:	50
Size:	60.9 KB
ID:	1242627
    Attached Files

    Comment


      #17
      Hello StealthM93,

      Thank you for that information and for providing the additional script.

      I have narrowed down the difference in how the values are rounded and displayed in the data box to the IsOverlay property. When IsOverlay is set to true, the values are all loaded to two decimal places. When set to false, the indicator is plotted on a new panel and will show the value as a whole number (or even just one decimal place) if applicable based on the double value assigned to the plot.
      I can report this to the development team to investigate whether this behavior is expected or not, though in the meantime if you would like to see the whole numbers you will need to set IsOverlay to false. You may still go into the indicator settings and set the "Panel" to "Same as input series" and as long as IsOverlay is false this should still continue to show the whole numbers, even without creating a new panel for the indicator.

      Thank you for your patience.
      Emily C.NinjaTrader Customer Service

      Comment


        #18
        Hello NinjaTrader_Emily

        That works - mostly. Now, whether set to Point or Ticks, whole number values are displayed as such. That is, if the range is 8.0 points, it shows "8"; if 8.25, it shows as "8.25", if 8.5, it shows as "8.5".

        Thank you, Emily!
        Matt


        Here are the settings:
        Click image for larger version

Name:	image.png
Views:	55
Size:	72.6 KB
ID:	1243088

        Click image for larger version

Name:	image.png
Views:	47
Size:	29.5 KB
ID:	1243087

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by FrazMann, Today, 11:21 AM
        0 responses
        1 view
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        51 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        10 responses
        36 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        24 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X