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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X