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

Indicator causing stack overflow exception

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

    Indicator causing stack overflow exception

    I made an indicator change that is now causing NT to throw a stack overflow exception whenever NT starts up. How can I start NT without opening my 5 chart windows where my indicator is blowing up. I do have a recent backup, but my understanding is you need to restore using NT once it's started. I've tried modifying the Default.xml in the workspaces folder to not load my indicator but not working.

    I've tried debugging using VS2010, but this is post exception so not much to see.

    Is there a way to start NT using a different workspace?

    Running NT 7.0.

    Any help is greatly appreciated!

    #2
    I've modified the _Workspaces.xml to try to load different workspaces and still throwing the exception. Is there a log anywhere that might show a stack trace (could be large as this is a stack overflow exception).

    Comment


      #3
      Solved the issue. I restored the bin, templates, workspaces directories, then was able to restart NT and edit my indicator and found the issue. I mistakenly used the name of the property in the get/set which caused the stack overflow.

      public double UserPriceForActiveRange
      {
      get{return UserPriceForActiveRange;}
      set{UserPriceForActiveRange = value;}
      }

      Comment


        #4
        Glad to hear jeddah62.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Max238, Today, 01:28 AM
        1 response
        23 views
        0 likes
        Last Post CactusMan  
        Started by giulyko00, Yesterday, 12:03 PM
        2 responses
        10 views
        0 likes
        Last Post giulyko00  
        Started by r68cervera, Today, 05:29 AM
        0 responses
        4 views
        0 likes
        Last Post r68cervera  
        Started by geddyisodin, Today, 05:20 AM
        0 responses
        7 views
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        38 views
        0 likes
        Last Post JonesJoker  
        Working...
        X