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

"Your indicator likey holds one or more recursive properties...."...problem ..

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

    "Your indicator likey holds one or more recursive properties...."...problem ..



    i see this message when i compile my code..

    i think it's due to this properties i set in my code:




    how do you suggest to do? or i can to ignore it ?

    #2
    Hello turbofib,

    Thank you for your post.

    Are these properties defined as public or private elsewhere in your script?
    Do you get or set properties anywhere else in the script?
    If so, please provide a screenshot of these sections.

    You can also find another example of how this occurs at the following link: http://ninjatrader.com/support/forum...19&postcount=2

    I look forward to your response.

    Comment


      #3
      the property is only defined here

      [NinjaScriptProperty]
      [Display(ResourceType = typeof(Custom.Resource), Name = " UpsideGapTwoCrows - INV RIB", Description = "Choose a pattern to detect", GroupName = "Candlestick RIB", Order = 12)]
      public bool UpsideGapTwoCrows
      {
      get; set;
      }
      but i see in the MACD (for example ) :


      protected override void OnStateChange()
      {
      if (State == State.SetDefaults)
      {
      Description = NinjaTrader.Custom.Resource.NinjaScriptIndicatorDe scriptionMACD;
      Name = NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meMACD;
      Fast = 12;
      IsSuspendedWhileInactive = true;
      Slow = 26;


      ....
      ....


      [Range(1, int.MaxValue), NinjaScriptProperty]
      [Display(ResourceType = typeof(Custom.Resource), Name = "Slow", GroupName = "NinjaScriptParameters", Order = 1)]
      public int Slow
      { get; set; }

      this code use "get and set" like mine
      Last edited by turbofib; 05-23-2017, 10:50 AM.

      Comment


        #4
        Hello turbofib,

        Thank you for your response.

        May we test the full script on our end?

        You can export your indicator by going to Tools > Export > NinjaScript Add On > Add > select your indicator > OK > Export > name the file 'NTsupport' > Save.

        The file will be located under Documents\NinjaTrader 8\bin\Custom\ExportNinjaScript. Please attach the file to your response.

        You can send the file to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H' and a reference to this thread.

        I look forward to assisting you further.

        Comment


          #5
          Hello turbofib,

          Thank you for sending over the script.

          You can actually select 'No' on the message in this case as the compiler is simply referring to your commented code and not the actual code that will process.

          Please let me know if you have any questions.

          Comment


            #6
            i don't understand

            the code i sent you is correct?

            Comment


              #7
              Hello turbofib,

              Thank you for your response.

              The code you sent has no compile errors. The warning is falsely triggering on commented code.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by guillembm, Yesterday, 11:25 AM
              2 responses
              9 views
              0 likes
              Last Post guillembm  
              Started by junkone, 04-21-2024, 07:17 AM
              9 responses
              68 views
              0 likes
              Last Post jeronymite  
              Started by trilliantrader, 04-18-2024, 08:16 AM
              4 responses
              20 views
              0 likes
              Last Post trilliantrader  
              Started by mgco4you, Yesterday, 09:46 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by wzgy0920, Yesterday, 09:53 PM
              0 responses
              10 views
              0 likes
              Last Post wzgy0920  
              Working...
              X