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

IntSeries in the Data Box

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

    IntSeries in the Data Box

    I would like to show an integer series in the data box, so I can see calculated values for each bar.

    I don't want to plot the values on the chart or below the chart, just see them in the databox.

    It seems that only plots are shown in the databox, so I used a DataSeries, which is a double.

    Then, if I want to hide the new plots, I set the color to transparent. If I do this then the new plots don't show in the databox.

    If I use a color (non transparent), then the new plots are visible but of course, it completely messes up my chart...and is unusable.

    Is what I'm trying to do possible?

    Is there a way to do it using only IntSeries and not DataSeries?

    #2
    Hello Turtle Trader,

    The only supported way to have a value show up in the Data Box that I am ware of.

    I will leave this thread open in case another user has had some experience with Data Box.

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      reply

      I don't mind using a DataSeries, even though I will only populate it with integers.

      The problem is....these plots need to be invisible, but still show up in the databox.

      Is that possible?

      Comment


        #4
        TurtleTrader, some ideas would include a custom DrawTextFixed for example for your int values or using plots that have the same color as the background instead of the Transparent that the DataBox would not show.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          reply

          Thank you Bertrand,

          The setting the plots to the background color may work. I'll try it.

          Would be good if there was a "don't draw" attribute that still allowed the Data Box to show the values.

          DrawTextFixed? I don't understand how that would work as it is not a Series....

          I have 4 integer values for each bar that I want to store, and to show in the databox.

          If anyone has ideas let me know.

          Comment


            #6
            IntSeries -- Please add to requested features

            actually, the best solution would be to have an attribute on IntSeries that allowed it to be shown in the DataBox

            That way, it expands the range of the DataBox to all Series and not just what is Plotted.

            Evidently now the DataBox is limited to a Plot.

            Comment


              #7
              background color won't work

              actually, in my case, changing the background color of plots to hide them is not going to work...as on my charts the background color is dynamic...another indicator changes the color of the background to give alerts

              Comment


                #8
                Hello Turtle Trader,

                You may try the DrawText() or DrawTextFixed() in your script.

                The DrawTextFixed() has 5 different options where you can display text like an Integer and would be a good option.

                The DrawText() can be used to display your integer on every bar but can be very resource intensive depending on how much data you are using.

                Let us know if either of those options will work for you.
                JCNinjaTrader Customer Service

                Comment


                  #9
                  reply

                  no, those won't work....

                  because I don't want the integers on the chart....

                  but I need a way to make visible the integer data points that are associated with each bar, much like the data box does

                  just like that...it shows the plot series data at each individual bar...that is what I want to do, but not have the plot (or series) be visible

                  will see if anyone in BMT has a solution

                  thank you

                  Comment


                    #10
                    Use a plot instead of an IntSeries, set AutoScale to false and set the plot color to transparent for all bars with the exception of the first 20 bars (with default value BarsRequried = 20).

                    A sample indicator is attached.
                    Attached Files

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by andrewtrades, Today, 04:57 PM
                    1 response
                    5 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by chbruno, Today, 04:10 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post chbruno
                    by chbruno
                     
                    Started by josh18955, 03-25-2023, 11:16 AM
                    6 responses
                    436 views
                    0 likes
                    Last Post Delerium  
                    Started by FAQtrader, Today, 03:35 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post FAQtrader  
                    Started by rocketman7, Today, 09:41 AM
                    5 responses
                    19 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Working...
                    X