• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Generated Code Bug with Commented out Properties

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

    Generated Code Bug with Commented out Properties

    It seems as though the generated code ignores when properties are commented out with the /* */ syntax. It still tries to include input parameters that are commented out into the generated code.

    #2
    Hi GrumpyTrader,

    Sometimes the autogenerated code will reference older code that has been removed or modified. Usually adding the code to a new script will correct that.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea. That actually didn't work in this case. I had to delete out the commented out properties for it to compile. I think the code parser is ignoring the comment syntax for some reason.

      Comment


        #4
        Hi GrumpyTrader,

        May I confirm you copied the logic to a new script and then deleted the old script?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by GrumpyTrader View Post
          It seems as though the generated code ignores when properties are commented out with the /* */ syntax. It still tries to include input parameters that are commented out into the generated code.
          I have come across it too at times. The issue though seems to be inconsistent. Usually I just switch to inline comments from the block comment, though on occasion I have had to restore the property, compile successfully, then delete the property and recompile.

          As Chelsea says, sometimes the only resolution has been to copy the code into another indicator and delete the errant one before compiling.

          Comment


            #6
            Hi Chelsea,
            I copied it to a new indicator, but I didn't delete the old one. The only way to fix it was to delete the commented out properties.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by frankduc, Today, 08:12 AM
            0 responses
            1 view
            0 likes
            Last Post frankduc  
            Started by jertrade, Today, 08:10 AM
            1 response
            2 views
            0 likes
            Last Post jertrade  
            Started by iq200, Today, 08:05 AM
            2 responses
            2 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by frantic, Today, 06:37 AM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by bouncetherubble, Yesterday, 06:56 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_ChristopherS  
            Working...
            X