Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Passing Indicator Parameters

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

    Passing Indicator Parameters

    Hello,

    I want to add an indicator to my strategy. The indicator has many parameters, but when I type its name and left parenthesis it only shows two overloads. They are like these:

    Indicator(IDataSeries input);
    Indicator();

    It seems that there is something in the indicator property descriptions that prevents parameters from showing in 'overloads'.

    How should I change indicator property descriptions, so that particular parameters show in 'overloads'?

    Thanks,

    Valentin

    #2
    I found a solution here:

    Original Problem: Ninjatrader is not autogenerating an overloaded constructor

    So I added "#region Variables" and changed grid categories to

    [GridCategory("Parameters")] - only for these parameters that I want to appear in overloaded constructors.

    Original grid category descriptions were:

    [NinjaTrader.Data.GridCategory("Parameters")]

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    30 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
    282 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X