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

Parameter Saving/Recovery

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

    Parameter Saving/Recovery

    Hello Support,

    I am wondering about [XmlIgnore] directive, that comes with the comments // This line ensure that the indicator can be saved/recovered as part of chart template, do not removed.

    I have few visual only parameters that I would like to have this saving feature, but I found that having [XmlIgnore] prevent them to be saved and recoverd when I re-open my workspace.

    If I remove [XmlIgnore], then I can save and recover their values when I reopen the workspace.

    Thanks.

    Regards,
    EdwardK.

    #2
    Correct Edward, for example custom color inputs need extra / custom serialization to be made 'savable'.



    Gets or sets a value that specifies whether or not the XmlSerializer serializes a public field or public read/write property.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand.

      That comments are confusing.
      It should be replaced as
      [XmlIgnore] // Keep this for parameter not to persist, remove this for default behaviour of parameter saving and recovery in chart template and workspace.

      Regards.
      EdwardK.

      Comment


        #4
        Originally posted by Edward Kunafi View Post
        Thanks Bertrand.

        That comments are confusing.
        It should be replaced as
        [XmlIgnore] // Keep this for parameter not to persist, remove this for default behaviour of parameter saving and recovery in chart template and workspace.

        Regards.
        EdwardK.
        Actually the comment is correct, just not comprehensive. It really refers to those elements that are not automatically serialized by C#.

        Take a look at this thread, where another user and I discussed this before: http://www.ninjatrader.com/support/f...ight=xmlignore

        Comment


          #5
          Thank you for pointing out.

          Regards,

          EdwardK

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Waxavi, Today, 02:10 AM
          0 responses
          3 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by TradeForge, Today, 02:09 AM
          0 responses
          9 views
          0 likes
          Last Post TradeForge  
          Started by Waxavi, Today, 02:00 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by elirion, Today, 01:36 AM
          0 responses
          4 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          4 views
          0 likes
          Last Post gentlebenthebear  
          Working...
          X