Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiler Bug ?

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

    Compiler Bug ?

    Comments in the parameter region seems to be not recognized by the code generator.

    After compiling this code, the Color-caching remains in the generated code and leads to a syntax error.

    /*
    [Description("")]
    [GridCategory("Parameters")]
    public KnownColor Color
    {
    get { return color; }
    set { color = value; }
    }
    */
    #endregion
    }
    }

    #region NinjaScript generated code. Neither change nor remove.
    // This namespace holds all indicators and is required. Do not change it.
    namespace NinjaTrader.Indicator
    {
    public partial class Indicator : IndicatorBase
    {
    private MyMTFSMA[] cacheMyMTFSMA = null;

    private static MyMTFSMA checkMyMTFSMA = new MyMTFSMA();

    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    /// <returns></returns>
    public MyMTFSMA MyMTFSMA(KnownColor color, int period)
    {
    return MyMTFSMA(Input, color, period);
    }

    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    /// <returns></returns>
    public MyMTFSMA MyMTFSMA(Data.IDataSeries input, KnownColor color, int period)
    {
    if (cacheMyMTFSMA != null)
    for (int idx = 0; idx < cacheMyMTFSMA.Length; idx++)
    if (cacheMyMTFSMA[idx].
    Color == color && cacheMyMTFSMA[idx].Period == period && cacheMyMTFSMA[idx].EqualsInput(input))
    return cacheMyMTFSMA[idx];



    ... after removing the property code completely the code is compileable.
    Last edited by TheChingachgook; 01-21-2010, 08:26 AM.

    #2
    Not sure. /* */ works for me here. What is the error you are receiving?
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    34 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    29 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    36 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    33 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    143 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X