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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        17 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X