• 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

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 ericson, Today, 08:14 PM
          0 responses
          5 views
          0 likes
          Last Post ericson
          by ericson
           
          Started by user1986, Today, 07:28 PM
          1 response
          7 views
          0 likes
          Last Post user1986  
          Started by jertrade, Today, 06:57 PM
          0 responses
          5 views
          0 likes
          Last Post jertrade  
          Started by Emma1, Today, 02:42 PM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_DrewO  
          Started by fx.practic, Today, 03:10 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X