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

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.
    Emily C.NinjaTrader Customer Service

    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.
        Emily C.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Yesterday, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X