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

Adding to the Plots indicator settings grid

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

    Adding to the Plots indicator settings grid

    I once wrote an indicator that had several parameters that I didn't want as parameters when I called the indicator from another indicator. These parameters controlled the visual appearance of things, like whether or not to draw certain objects on the indicator. So in the Properties region of my source code, I used [GridCategory("Plots")] instead of [GridCategory("Parameters")] for these settings.

    This worked.

    Except, when I tried to write a different indicator with the same technique, it didn't.

    Instead, I got a duplicate Plots area in the indicator settings grid, and these settings were still regarded as parameters in the overload methods in the NinjaScript generated code section.

    I don't know why it worked in one case but not the other. What did I do right the first time? Is there anything I can do to create 'hidden' parameters (that don't need to be included in an external call to the indicator) that appear consistently in the Plots section of the indicator settings?

    -A

    #2
    I used [GridCategory("Plots")] instead of [GridCategory("Parameters")] for these settings.

    Try using [Category("Plot Settings")] You won't have everything under the same heading but it should solve your other problems.

    Comment


      #3
      Originally posted by Ricam View Post
      Try using [Category("Plot Settings")] You won't have everything under the same heading but it should solve your other problems.
      Thanks. I used [Category("Plots")] instead of [GridCategory("Plots")] just now and it worked fine, lumping everything in the Plots area of the indicator properties dialog. What's the difference between Category and GridCategory?
      -A

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by PaulMohn, Today, 12:36 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      36 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by rdtdale, Today, 01:02 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by alifarahani, Today, 09:40 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by RookieTrader, Today, 09:37 AM
      4 responses
      19 views
      0 likes
      Last Post RookieTrader  
      Working...
      X