• 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

Custom Indicator hangs NT on New Strategy Create

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

    Custom Indicator hangs NT on New Strategy Create

    Gents

    The attached custom indicator will hang NT as follows ..
    1. Compile NT so that this doofus indicator is installed
    2. Create a NEW Strategy
    3. Stategy builder runs ...
    4. Click thru until the condition builder shows
    5. NT will hang when you try to add any new condition.

    I did a trial and error test and removed all custom indicators/strategis on my system. This seems to be the one that is bad.
    All I can see 'wrong' is that all the on-barupdate section is empty, as I never got around to doing what I wanted on this one.

    I've attached my top-secret-doofus-millionair-indicator below

    Not for you to fix it, but perhaps understand why NT crashed if it's installed.

    Cheers
    Ws
    Attached Files

    #2
    Recursive property which results in a stack overflow which no longer is trappable in .NET 2.0.

    public int Num_crosses
    {
    get { return Num_crosses; }
    set { Num_crosses = Math.Max(1, value); }
    }
    DierkNinjaTrader Customer Service

    Comment


      #3
      Sorry Dierk, I don't understand.

      That looks like the code created for one of the parms by the wizard .

      ???

      Comment


        #4
        No it's not. Or it was edited. Wizard would create:

        public int Num_crosses
        {
        get { return num_crosses; }
        set { num_crosses = Math.Max(1, value); }
        }

        Note the caps.
        DierkNinjaTrader Customer Service

        Comment


          #5
          stack overflow error

          Interesting . . . I was receiving a stack overflow error on a new strategy until I came across this post and noticed that I had mistyped a variable name. Whew . . . this could have taken a lot longer to figure out . . . thanks for sharing!

          Regards,

          Whitmark
          whitmark
          NinjaTrader Ecosystem Vendor - Whitmark Development

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NinjaCustomer, Today, 12:14 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by U0000999, Yesterday, 11:49 PM
          0 responses
          4 views
          0 likes
          Last Post U0000999  
          Started by ahadari28, Yesterday, 04:01 PM
          0 responses
          6 views
          0 likes
          Last Post ahadari28  
          Started by TazoTodua, Yesterday, 06:00 AM
          2 responses
          19 views
          0 likes
          Last Post TazoTodua  
          Started by TazoTodua, Yesterday, 09:06 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X