Announcement

Collapse
No announcement yet.

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.

    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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          577 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X