Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Disable Strategy within the Ninja script

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

    Disable Strategy within the Ninja script

    Hi,

    How do I disable the strategy from within the script itself? I need that since I do some
    sanity check on parameters and if failed, I would like to disable the strategy.

    Shmuel

    #2
    Shmuel,

    You can use the "Disable()" command. Please see the link below :

    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      When using Disable() the Ninja system won't call "OnTermination" function which does critical cleanup for me, how should I overcome that?

      Shmuel

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Salahinho99, 05-05-2024, 04:13 AM
      7 responses
      55 views
      0 likes
      Last Post Salahinho99  
      Started by knighty6508, 05-10-2024, 01:20 AM
      4 responses
      26 views
      0 likes
      Last Post knighty6508  
      Started by OllieFeraher, 05-09-2024, 11:14 AM
      6 responses
      19 views
      0 likes
      Last Post OllieFeraher  
      Started by PaulMohn, 05-02-2024, 06:59 PM
      2 responses
      44 views
      0 likes
      Last Post PaulMohn  
      Started by ETFVoyageur, Today, 02:10 AM
      0 responses
      19 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X