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

Wizard Generator

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

    Wizard Generator

    When you auto generate and indicator I notice that on first compile it lets you know that there is a name conflict (variable already used) which comes from giving the Properties used to access the private variables the same name as the private varialbes that are used as parameters.

    I prepend underscore to the privates but I assume that you are going to fix this at some point and I would rather stick with the naming convention that you will be using: Capitalization of Property name? Underscore?

    #2
    imported post

    Not sure I follow:

    Using the wizard, code is generated and private variables are lower case and properties are upper case. There is no conflict and will compile.

    Maybe I am not understanding your explanation?

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Okay - I've discovered the problem - it looks like the wizard assumes that you don't change the case of the Param when entered in the wizard and leave it in Proper Case. Perhaps this is documented - if so I apologise.

      What I did was rename the Param0 to "myparam" and did not capitalize the first letter. This meant that the property and private variable both had the same name and that's what caused the clash.

      Try it out in the wizard. When you get to the param part of the wizard change the param name from "Param0" to "param0" and you should have that same compilie problem.

      Comment


        #4
        imported post

        I see, thanks for pointing that out.
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          We made change for the next update. Also, send me an email to [email protected] would like to discuss your progress and a few other things.

          Ray
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ursavent, Today, 12:54 PM
          0 responses
          2 views
          0 likes
          Last Post ursavent  
          Started by Mizzouman1, Today, 07:35 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by RubenCazorla, Today, 09:07 AM
          2 responses
          13 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by i019945nj, 12-14-2023, 06:41 AM
          7 responses
          82 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by timmbbo, 07-05-2023, 10:21 PM
          4 responses
          158 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X