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 gabrielrodrigues, 06-21-2024, 07:38 AM
        13 responses
        60 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by affilife, 02-17-2024, 09:53 AM
        8 responses
        129 views
        0 likes
        Last Post rjm1903
        by rjm1903
         
        Started by ttrader23, Today, 12:09 PM
        0 responses
        5 views
        0 likes
        Last Post ttrader23  
        Started by Mistoffelees, Today, 11:50 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by sgordet, Today, 10:53 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Working...
        X