Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error in registration

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

    error in registration

    can you help with this

    Error when executing the DB command: System.InvalidOperationException: The type 'NinjaTrader.NinjaScript.Strategies.Franatas.Miste rBotFullMicros' cannot be deserialized because it contains a property 'CierreSesion' that has no public setter. in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping mapping, ArrayList list) in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping structMapping) in System.Xml.Serialization.XmlSerializationReaderILG en.WriteLiteralStructMethod(StructMapping structMapping) in System.Xml. Serialization.XmlSerializationReaderILGen.Generate Method(TypeMapping mapping) in System.Xml.Serialization.XmlSerializationILGen.Gen erateReferencedMethods() in System.Xml.Serialization.XmlSerializationReaderILG en.GenerateEnd(String[] methods, XmlMapping[] xmlMappings, Type[] types) in System. Xml.serialization.tempassembly.Generaterefemitasse mbly (xmlmapping [] xmlmappings, type [] types, string defaultnamespace, evidence evidence) in System.xml.Serialization.tempassembly..Ctor S, Type [] Types, String DefaultNamespace, String location, Evidence evidence) in System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) in System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) in NinjaTrader.NinjaScript.StrategyBase. ToXml() in NinjaTrader.NinjaScript.StrategyBase.DbAdd() in NinjaTrader.Cbi.DB.DBThread()

    #2
    Hello franatas,

    Thank you for your post.

    This error seems to be related to the property "CierreSesion" in your strategy MisterBotFullMicros. Please provide a snippet of how you have this property defined in the properties region of your strategy so we may better assist you.

    I look forward to your reply.

    Comment


      #3
      ok, leave me a public bool CierreSesion { get; private set; }

      Comment


        #4
        Originally posted by franatas View Post
        ok, leave me a public bool CierreSesion { get; private set; }
        The error says "The type 'NinjaTrader.NinjaScript.Strategies.Franatas.Miste rBotFullMicros' cannot be deserialized because it contains a property 'CierreSesion' that has no public setter."

        I see you are using a private setter:
        { get; private set; }

        please remove the private modifier from the setter then re-compile and this should resolve the error.

        Thank you for your time and patience.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        597 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X