Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Closing position on strategy exit

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

    Closing position on strategy exit

    Hey guys when you unclick a strategy is there a method where you could place the "Exitlong()" statement to exit the position when the strategy is disabled?

    Thanks,
    EliteTraderNYC

    #2
    Hi EliteTraderNYC,

    Thanks for your post.

    Yes, you can trigger exit orders when disabling.

    The OnTermination() is the method that triggers when a script disables.
    http://www.ninjatrader.com/support/h...ermination.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Great! Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Valerius.Lucius, 09-24-2024, 03:12 AM
      9 responses
      66 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by crytomayusia, 04-07-2024, 02:53 PM
      4 responses
      64 views
      0 likes
      Last Post nrgful
      by nrgful
       
      Started by Mycale, 06-30-2024, 12:59 PM
      5 responses
      199 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by algospoke, 09-29-2024, 06:23 PM
      3 responses
      36 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by llanqui, 09-26-2024, 10:55 AM
      6 responses
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X