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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        173 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        91 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        129 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        209 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        186 views
        0 likes
        Last Post CarlTrading  
        Working...
        X