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

Plot`s visible/hide/order in configuration panel Strategy/Indicator

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

    Plot`s visible/hide/order in configuration panel Strategy/Indicator

    Hi, how can I make the plots in the configuration panel invisible? How can these entries be ordered?

    Click image for larger version

Name:	Screenshot_1.jpg
Views:	291
Size:	7.3 KB
ID:	1157455

    [Display(ResourceType = typeof(Resource), Order = 0, GroupName = "",
    Properties can be ordered by "Order" and "GroupName", but how does this work with the plots?


    [Browsable(false)]
    the same applies to visible
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,
    Plots are ordered as they're added.
    Plots can be made invisible from configuration by using:-
    Code:
    ArePlotsConfigurable = false;
    Hope it helps!

    Comment


      #3
      Originally posted by s.kinra View Post
      Hello sidlercom80,
      Plots are ordered as they're added.
      Plots can be made invisible from configuration by using:-
      Code:
      ArePlotsConfigurable = false;
      Hope it helps!
      Hi, no that doesn't help me, the plots are now transparent, but I don't want to have the plots transparent, just don't make the entry visible in the configuration panel, as with the attribute (Browsable(false)]
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment


        #4
        Hello,
        If you're using ArePlotsConfigurable = false; in no way it should make your plots transparent. Its meant to omit Plots section from indicator settings dialog completely. So, you don't have option to change plot settings from indicator settings dialog box.
        Note: this should be added in SetDefaults, & after adding it you will not be able to get the changes simply by F5; instead you need to remove your indicator & add it again to chart or you can reset it from bottom right corner of indicator settings.
        Plots can be made transparent by using PlotBrushes[0][0] = Brushes.Transparent; for example. So you can check your code for this.
        Refer snapshot, this is how this should omit Plots section from indicator settings dialog box.
        Hope it helps!

        Comment


          #5
          Hi s.kinra this may be the case with an indicator, but not with a strategy! in my strategy it looks like after inserting ArePlotsConfigurable = false;

          Click image for larger version

Name:	Screenshot_2.jpg
Views:	325
Size:	7.0 KB
ID:	1157633

          the plots are invisible on the chart but still visible in the backend. I want it the other way around, visible on the chart and invisible in the back.
          sidlercom80
          NinjaTrader Ecosystem Vendor - Sidi Trading

          Comment


            #6
            Hello,
            I just tested this on a test Strategy & is working as expected. Possibly you're not using AddPlot(); so the results may differ.
            Last edited by s.kinra; 05-26-2021, 03:07 AM.

            Comment


              #7
              Hi, yes now it worked, I had to overwrite the standard template otherwise he always loaded me the old template with the plots in it. Thank you for your help
              sidlercom80
              NinjaTrader Ecosystem Vendor - Sidi Trading

              Comment


                #8
                Originally posted by sidlercom80 View Post

                Click image for larger version

Name:	Screenshot_2.jpg
Views:	325
Size:	7.0 KB
ID:	1157633

                the plots are invisible on the chart but still visible in the backend. I want it the other way around, visible on the chart and invisible in the back.
                Hello,
                For template issue I already suggested to reset in Post # 4 & I am curious to know your invisible thing.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by traderqz, Today, 12:06 AM
                5 responses
                8 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by Mongo, Today, 11:05 AM
                2 responses
                7 views
                0 likes
                Last Post Mongo
                by Mongo
                 
                Started by guillembm, Today, 11:25 AM
                0 responses
                3 views
                0 likes
                Last Post guillembm  
                Started by Tim-c, Today, 10:58 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by traderqz, Yesterday, 09:06 AM
                4 responses
                29 views
                0 likes
                Last Post traderqz  
                Working...
                X