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 sidlercom80, 10-28-2023, 08:49 AM
      171 responses
      2,273 views
      0 likes
      Last Post QuantKey_Bruce  
      Started by Irukandji, Yesterday, 02:53 AM
      2 responses
      17 views
      0 likes
      Last Post Irukandji  
      Started by adeelshahzad, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post adeelshahzad  
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      3 views
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Working...
      X