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 kaywai, 09-01-2023, 08:44 PM
          5 responses
          601 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          6 responses
          22 views
          0 likes
          Last Post xiinteractive  
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          17 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          230 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Working...
          X