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

NinjaScript generated code not updated if comments are added

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

    NinjaScript generated code not updated if comments are added

    hi

    I noticed that the NinjaScript generated code is not updated when you add a new parameter to your indicator and put a comment after the definition and before the get/set line.
    The below example will not update the NinjaScript generated code upon saving. The indicator will still run perfectly fine until you reference it from a strategy or another indicator.
    Then you have a mismatch in the # of parameters and it took me quite some time to figure out what was going on.
    You may want to address this in code or mention in the documentation.

    [NinjaScriptProperty]
    [Display(Name = "Period", Order = 10, GroupName = "Parameters")]
    public int Period // some comment put here
    { get; set; }



    #2
    Hello DukuGrinder,

    Thank you for reporting this.

    I was able to reproduce.

    I will submit a feature request to allow for comments after NinjaScriptProperty public object declarations.

    I will also request this be mentioned in the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      it is not a feature request, it is a bug..

      Comment


        #4
        Hello DukuGrinder,

        NinjaTrader has a NinjaScript wrapper that parses the indicator file before compiling to create the NinjaScript generated code. This wrapper comes with limitations like we see here. We will be making some documentation updates in the future to outline these limitations.

        If there is any other behavior that you are seeing with the NinjaScript Generated code that you would like to report so we can have it documented, we will be happy to review.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Karado58, 11-26-2012, 02:57 PM
        8 responses
        14,825 views
        0 likes
        Last Post Option Whisperer  
        Started by Option Whisperer, Today, 09:05 AM
        0 responses
        1 view
        0 likes
        Last Post Option Whisperer  
        Started by cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Started by Harry, 05-02-2018, 01:54 PM
        10 responses
        3,203 views
        0 likes
        Last Post tharton3  
        Started by ChartTourist, Today, 08:22 AM
        0 responses
        6 views
        0 likes
        Last Post ChartTourist  
        Working...
        X