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

ShowTransparentPlotsInDataBox not working

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

    ShowTransparentPlotsInDataBox not working

    I am trying to get the plots plotted by my strategy to show in the data box when they are set to transparent, but despite making a custom indicator with
    " ShowTransparentPlotsInDataBox = true; " and inserting the same line in the strategy code, the indicator's transparent plot is still not showing in the databox.

    #2
    Hi itrader46, thanks for your note.

    The Chart will only pay attention to non-transparent plots. I will submit a feature request to show transparent plots in the databox in a future update.

    Thanks in advance for your patience.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      I'm not sure I follow: the syntax above is from NT8 help guide and it actually works, so you don't have to do anything.

      Anyway, I figured out why mine didn't show up: the indicator was set to plot on a secondary series, which the strategies won't allow.

      So this is a feature request you can add, please: for strategies to plot indicators applied to secondary series.

      Comment


        #4
        Hi itrader46, thanks for catching that I misread the original post.

        I'll add a feature request for this if one does not exist already. If one already exists I will add a vote to it for you.

        Best regards.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hi itrader46,

          Are you plotting from a secondary instrument added to the script or to a data series on the chart? My indicators will plot secondary series if the Input field for the indicator is set to that series.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Really? I thought I read in the help guide that's not possible.

            My code below won't plot other indicators than for the primary [0] series. Is there anything wrong with it?

            The transparent plots show in the data box, but only for the primary [0] series and it makes no difference what colour I set for the [2] series indicators to plot, they don't show

            Code:
            public class ATM2 : Strategy
                {                   
                    private T3 T31b0;
                    private T3 T32b0;        
                    private T3 T31b2;
                    private T3 T32b2;
                    private DMI DMI1;
            ...
            
            else if (State == State.Configure)                
                            {
                                AddDataSeries(Data.BarsPeriodType.Tick, 1);
                                AddDataSeries(Data.BarsPeriodType.Minute, 5);                    
                            }
            
            else if (State == State.DataLoaded)
            {
            
            DMI1            = DMI(Closes[2], Convert.ToInt32(DmiPeriod));              
            T31b0           = T3(Closes[0], 5, 3, 0.7);
            T32b0           = T3(Closes[0], 8, 3, 0.7);
            T31b2            = T3(Closes[2], 5, 3, 0.7);
            T32b2            = T3(Closes[2], 8, 3, 0.7);
            
            T31b0.Plots[0].Brush = Brushes.Yellow;
            T32b0.Plots[0].Brush = Brushes.White;                
            T31b2.Plots[0].Brush = Brushes.Transparent;
            T32b2.Plots[0].Brush = Brushes.Transparent;
            DMI1.Plots[0].Brush = Brushes.Transparent;
            
            AddChartIndicator(T31b0);
            AddChartIndicator(T32b0);                
            AddChartIndicator(T31b2);
            AddChartIndicator(T32b2);
            AddChartIndicator(DMI1);

            Comment


              #7
              Hi itrader46, thanks for your reply.

              I submitted a feature request to enable transparent plots in the databox for the extra series added to the script. I'll have a feature id tracking number for you shortly.

              Kind regards.
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Hi,

                I have the opposite issue. I would like my transparent plots NOT to appear in the DataBox. I set
                Code:
                ShowTransparentPlotsInDataBox = false
                and it still appears in the DataBox in black with n/a as values as opposed to the desire result which would be to not appear at all. How can I enforce my transparent plots to not show in the DataBox if ShowTransparentPlotsInDataBox does not work?

                Comment


                  #9
                  Hi, I never posted the feature request ID here, its SFT-4436. The property is working for my test script. Please see attached. Check what is different between this script and your script that is still showing the plot in the databox.

                  Kind regards.
                  Attached Files
                  Chris L.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,607 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  19 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  16 views
                  0 likes
                  Last Post Javierw.ok  
                  Working...
                  X