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

Doing this will cause a crash

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

    Doing this will cause a crash

    Hi-

    I've been able to consistently reproduce this crash here several times. I've been deleting old saved backtests from my "strategy analyzer" folder (wherever that is, I actually can't seem to find it).

    So I choose to "load a backtest result," and I start clicking on old backtests to delete them. After 3-4 deletes, I'll get an exception and a crash. I copied the last time that happened from my trace, and pasted it below.

    These old backtests are for strategies that I've removed from my strategy folder. I didn't actually try and load the backtests - just clicked on them and went to hit delete.

    I tried this, just to make sure, both while connected to my data provider as well as when I was disconnected. Same result.

    Code:
    [B]2011-03-21 18:00:14:703 ERROR: Unable to restore strategy 'NinjaTrader.Strategy.CRG_Momentum_MultiTimeFrame4a' with ID 'e0ca11ec90894618966bd1f52134f224'. Most likely this strategy no longer is supported by the custom assemblies.
    2011-03-21 18:00:14:718 in OnUnhandledThreadException[/B]
    2011-03-21 18:00:14:734 ********* exception trapped *********
    2011-03-21 18:00:14:734 Mapping: IObjectHelper is missing Strategies_ : NinjaTrader.Strategy.StrategyData
    2011-03-21 18:00:14:734    at Wilson.ORMapper.Internals.Instance.SetField(EntityMap entityMap, Object entityObject, String member, Object value, CustomProvider provider)
       at Wilson.ORMapper.Internals.Instance.SetObject(IDataRecord data)
       at Wilson.ORMapper.ObjectReader.Read()
       at Wilson.ORMapper.Internals.Context.GetObjectSet(ObjectReader reader)
       at Wilson.ORMapper.Internals.Context.GetObjectSet(ObjectQuery objectQuery, Boolean firstLevel)
       at Wilson.ORMapper.ObjectSpace.GetObjectSet(ObjectQuery objectQuery)
       at NinjaTrader.Strategy.SaveStrategyForm.DeleteNow(String name, Boolean backTestOnly)
       at NinjaTrader.Strategy.SaveStrategyForm.Delete(String name)
       at NinjaTrader.Strategy.SaveStrategyForm.OnKeyDown(Object sender, KeyEventArgs e)
       at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
       at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
       at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
       at System.Windows.Forms.Control.WmKeyChar(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ListView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2011-03-21 18:00:25:078 Gui.WorkspaceOptions.ApplicationExit
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: deactivating hot keys
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down news timer
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down message timer
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down file type watcher
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down ATI server
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: disposing autoTrade component
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down data server
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: shutting down SMTP server
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: closing connections
    2011-03-21 18:00:26:531 Gui.Globals.AppExit: closing replay connection
    2011-03-21 18:00:26:531 Server.Client.Close
    2011-03-21 18:00:26:531 Cbi.Globals.ApplicationExit
    2011-03-21 18:00:26:531 Db.Globals.ApplicationExit
    2011-03-21 18:00:26:546 Cbi.License.ApplicationExit
    2011-03-21 18:00:26:562 Data.Collective2Adapter.ApplicationExit
    2011-03-21 18:00:26:562 Checking backup reminder...
    2011-03-21 18:00:26:562 ************************ Session End ************************

    #2
    Hi cgeorgan,

    Thank you for the report.

    These old backtests are for strategies that I've removed from my strategy folder.
    To remove strategies from NinjaTrader:
    Click Tools > Edit NinjaScript > Strategy > Highlight a strategy and click delete.

    If you remove strategies properly, you shouldn't get this error. Can you please confirm if you removed the files from the NT UI or through Windows?
    Last edited by NinjaTrader_RyanM1; 03-21-2011, 04:25 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    3 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X