Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer Error - Delete saved result

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

    Strategy Analyzer Error - Delete saved result

    Hello,

    reprodece of the error:
    - run optimizer
    - save results
    - delete strategy (which is optimized)
    - delete saved results
    --> throw error

    2010-02-23 15:31:53:863 ERROR: Unable to restore strategy 'NinjaTrader.Strategy.SampleMACrossOverError' with ID '3a6196d7afe9498daea2c507639c7365'. Most likely this strategy no longer is supported by the custom assemblies.
    2010-02-23 15:31:53:879 in OnUnhandledThreadException
    2010-02-23 15:31:53:879 ********* exception trapped *********
    2010-02-23 15:31:53:879 Mapping: IObjectHelper is missing Strategies_ : NinjaTrader.Strategy.StrategyData
    2010-02-23 15:31:53:879 at Wilson.ORMapper.Internals.Instance.SetField(Entity Map entityMap, Object entityObject, String member, Object value, CustomProvider provider)
    at Wilson.ORMapper.Internals.Instance.SetField(String member, Object value)
    at Wilson.ORMapper.Internals.Instance.SetObject(IData Record data)
    at Wilson.ORMapper.ObjectReader.Read()
    at Wilson.ORMapper.Internals.Context.GetObjectSet(Obj ectReader reader)
    at Wilson.ORMapper.Internals.Context.GetObjectSet(Obj ectQuery objectQuery, Boolean firstLevel)
    at NinjaTrader.Strategy.SaveStrategyForm.DeleteNow(St ring name, Boolean backTestOnly)
    at NinjaTrader.Strategy.SaveStrategyForm.Delete(Strin g name)
    at NinjaTrader.Strategy.SaveStrategyForm.OnDelete(Obj ect sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Tamas

    #2
    Hi Tamas,

    I tried your steps on two computers and was unable to reproduce. Are you deleting this strategy while you still had it open somewhere? Maybe running in Strategies tab or somewhere else?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      i will give you a feedback later

      Tamas

      Comment


        #4
        Josh,

        I checked it again (NT7B10), please test it like this:

        - Open NT
        - Open SampleMACrossOver in editor.
        - Right Click --> SaveAs SampleMACrossOver1
        - Build.
        - Run Optimizer on SampleMACrossOver1 strategy.
        - Save result.
        - Close NT.
        - Delete SampleMACrossOver1.cs file.
        - Open NT.
        - Open another strategy.
        - Buld.
        - Open or delete saved optimizer results SampleMACrossOver1 in Strategy Analyzer.
        --> Error

        I thing this is not good like this, because practicallyin NT I don't make any file and edit operations (i think like others), only in VS. In NT I only build. If, however I deleted the strategy file long ago, because I didn't need it, then I can't open the saved results of that any more. Which is worse, that I can not delete the result, so more and more gathered.

        Tamas

        Comment


          #5
          >> - Delete SampleMACrossOver1.cs file.
          You NEVER should do this as it causes inconsistencies in NT as you experienced. ONLY delete "files" by the editor file dialog.

          Comment


            #6
            Originally posted by NinjaTrader_Dierk View Post
            >> - Delete SampleMACrossOver1.cs file.
            You NEVER should do this as it causes inconsistencies in NT as you experienced. ONLY delete "files" by the editor file dialog.
            OK, it's clear, thank you.

            Only suggestion:

            - even if opening does not work, then deleting should work.
            - or at least it does not throw unhadled exception.

            ATB, Tamas

            Comment


              #7
              Thanks for your suggestion. We'll add it to the list of future considerations.

              Note: You should hold off manually manipulating the files in <my documents>/NinjaTrader7 to not corrupt NT

              Comment


                #8
                I stopped doing that

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                607 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                353 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X