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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X