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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      33 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      286 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      286 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      133 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      91 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X