Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

On Strategy Close?

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

    On Strategy Close?

    Hello Support,

    I would like to start by thanking you guys for the awesome support i get everytime i come to this forum.

    Today, i want to inquire about a special case scenario. I want to know whether there is any event callback for when a strategy is removed/disabled? I wasnt able to find anything like a "OnStrategyClose".

    What i want to do is t be able to do some cleanup when a strategy is removed.

    Please advise.

    Thanks
    Umer

    #2
    Hello umer,

    Thank you for your note.

    You can use OnTermination() to clean up your resources, this method is called on termination of the indicator or strategy: http://www.ninjatrader.com/support/h...ermination.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thank you Patrick for the prompt response (as always)

      Just to confirm, this event would be triggered when the strategy is disabled or removed from the strategy's tab or the chart. Correct?

      Thanks
      Umer

      Comment


        #4
        Hello Umer,

        This is correct.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        637 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X