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); }
    }

    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.

        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 r68cervera, Today, 05:29 AM
          0 responses
          3 views
          0 likes
          Last Post r68cervera  
          Started by geddyisodin, Today, 05:20 AM
          0 responses
          6 views
          0 likes
          Last Post geddyisodin  
          Started by JonesJoker, 04-22-2024, 12:23 PM
          6 responses
          35 views
          0 likes
          Last Post JonesJoker  
          Started by GussJ, 03-04-2020, 03:11 PM
          12 responses
          3,241 views
          0 likes
          Last Post Leafcutter  
          Started by AveryFlynn, Today, 04:57 AM
          0 responses
          7 views
          0 likes
          Last Post AveryFlynn  
          Working...
          X