Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Saved Strategy Results not showing in Strategy Analyzer

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

    #16
    Chelsea,
    followed your instructions and renamed db to OLDNinjaTrader.sdf

    Restarted NT7 and ran MA crossover, results showed, but still cannot be saved and same error appears in log.

    Let me know how you'd like to proceed.

    Comment


      #17
      Hello nmk85roll,

      Thanks for giving this a try.

      Please send an email to platformsupport [at] ninjatrader [dot] com so that we may schedule a call to assist. In the email please include a link to this forum thread.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Hello nmk85roll and for any community members curious about the resolution,

        We found there was a specific script that was causing the issue. This script has a partial class extending the Strategy class, so would cause errors with all strategies including those supplied with the NinjaTrader installer.

        In this partial class was a public interface object.

        NinjaTrader uses reflection to gather all public objects for saving in xml files. This allows you to save strategies and indicators and their public properties to xml files like workspaces and templates, and restore the values of these public properties when restoring the workspace or template.

        Interface objects, like IOrder, do not have members. Because of this, they cannot be saved in xml files and the serialization run will break and NinjaTrader will be unable to construct the instance of the class.

        The fix, is to use the [XmlIgnore()] attribute if the object must use the public access modifier so that property is not attempted to be serialized.
        https://ninjatrader.com/support/help...lor_inputs.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by gemify, 11-11-2022, 11:52 AM
        6 responses
        803 views
        2 likes
        Last Post ultls
        by ultls
         
        Started by ScottWalsh, Today, 04:52 PM
        0 responses
        3 views
        0 likes
        Last Post ScottWalsh  
        Started by ScottWalsh, Today, 04:29 PM
        0 responses
        7 views
        0 likes
        Last Post ScottWalsh  
        Started by rtwave, 04-12-2024, 09:30 AM
        2 responses
        22 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by tsantospinto, 04-12-2024, 07:04 PM
        5 responses
        70 views
        0 likes
        Last Post tsantospinto  
        Working...
        X