Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X