Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reset input parameters when NT Starts or Closes

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

    Reset input parameters when NT Starts or Closes

    Hi,

    I have an input parameter that I want save its value, but only until I close NT. If I restart NT I want that value to be cleared.

    Is there a closing event for NT, or a chart closing event, or a starting event that I can use to clear that parameter?

    Thanks,
    will.

    #2
    Originally posted by dontpanic View Post
    Hi,

    I have an input parameter that I want save its value, but only until I close NT. If I restart NT I want that value to be cleared.

    Is there a closing event for NT, or a chart closing event, or a starting event that I can use to clear that parameter?

    Thanks,
    will.
    You can apply the attribute for xml serialization to ignore the parameter, or you can reset it with the OnTermination() event handler.

    Comment


      #3
      I used set() in serialize to set the value to null, and that does the trick,

      thanks.

      Comment


        #4
        Hi Will,

        Thank you for posting.

        Glad to hear you were able to get a solution.

        Thank you Koganam for posting a solution!

        Let us know if we can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X