Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator signature

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

    Indicator signature

    I have the following indicator code where the parameters are declared in the order int period, double breakOutLimit. In the generated code the order in the parameter signature is double breakOutLimit, int period and the indicator fails to compile when I call the indicator with the order int, double.

    Does this mean the parameters are always reversed from how they are declared or are they randomized.

    #region Properties
    [Browsable(false)]
    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()]
    // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public DataSeries Plot0
    {
    get
    {
    return Values[0];
    }
    }

    [Description("")][GridCategory("Parameters")]
    public int Period
    {
    get
    {
    return period;
    }
    set
    {
    period = Math.Max(3, value);
    }
    }

    [Description("")][GridCategory("Parameters")]
    public double BreakOutLimit
    {
    get
    {
    return breakOutLimit;
    }
    set
    {
    breakOutLimit = Math.Max(0, value);
    }
    }
    #endregion
    ************************************************** ********************
    public aslope aslope(double breakOutLimit, int period)
    {
    return aslope(Input, breakOutLimit, period);
    }

    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    /// <returns></returns>
    public aslope aslope(Data.IDataSeries input, double breakOutLimit, int period)
    {

    #2
    bjmoose, it would be alphabetical per default that's correct. You can sequence them though differently for the UI display with this tip - http://www.ninjatrader.com/support/f...ead.php?t=4770

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    344 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    557 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X