Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Generated method signatures different in NT 7 and NT 8

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

    Generated method signatures different in NT 7 and NT 8

    I'm upgrading my indicators from NT 7 to NT 8.

    Some of these indicators are very complex, and I had a series of parameters that I defined in the Properties region as [Category("Parameters")], and another set of less important parameters that I defined as [Category("Extra Parameters")].

    NT 7 would generate a method signature with just my "Parameters" (NinjaScript generated code. Neither change nor remove). So it was very easy to call this indicator from a strategy with just 3 parameters instead of 20 for example.

    In NT 8 I'm following the same procedure...
    [NinjaScriptProperty]
    Display(Name="01. Span", Description="Bar span for Indicator X to consider for highest and lowest values", Order=2, GroupName="Parameters")]
    ....
    [NinjaScriptProperty]
    Display(Name="01. Line color", Description="Line Color", Order=2, GroupName="Extra Parameters")]

    but it seems that the method signature is generated by NT 8 with all the 20 indicators. It doesn't differentiate between "Parameters" and "Extra Parameters".

    This means that when I call it from a strategy I would have to use all the 20 parameters. Is this normal behavior? is there a way to make NT 8 behave like NT 7?

    Thanks!

    #2
    Hello ds1111,

    Thanks for your post.

    [NinjaScriptProperty] - Definition: Determines if the following declared property should be included in the NinjaScript object's constructor as a parameter. This is useful if you plan on calling a NinjaScript object from another (e.g., calling a custom indicator from a strategy) or customizing the display parameter data on a grid or from a chart.

    Just remove [NinjaScriptProperty] as needed.

    Helpguide reference: http://ninjatrader.com/support/helpG...yattribute.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 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
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X