Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Recursive property

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

    Recursive property

    Hallo everybody,
    I am a novice and I want to create my first strategy. But there is already the first bug.
    I hope someone can help me.
    Thank you in advance.
    Benjamin
    Attached Files

    #2
    Hello,

    Can you please post your code or send your code to support at ninjatrader dot com and reference this forum post so that we may take a quick look at it and see if we can see what is causing the issue.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      bascher,

      This generally means that your input variable has the same name as the public get/set method which calls it.

      For example

      Incorrect
      Code:
              private int Period1 = 5; 
              [Description("Period")]
              [Category("Parameters")]
              public int Period1
              {
                  get { return Period1; }
                  set { Period1 = value; }        	
      	}
      Correct
      Code:
              private int [B][COLOR="Red"]i[/COLOR][/B]Period1 = 5; 
              [Description("Period")]
              [Category("Parameters")]
              public int Period1
              {
                  get { return [B][COLOR="Red"]i[/COLOR][/B]Period1; }
                  set { [B][COLOR="Red"]i[/COLOR][/B]Period1 = value; }        	
      	}
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        okay thank you

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        25 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        17 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        94 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X