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

Action on Strategy Script Exit

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

  • NinjaTrader_CodyB
    replied
    Hello,
    Thank you for your post.
    The closest even method for what you are looking for is the OnTermination() method.
    For more information on the OnTermination() method please see the following link: http://ninjatrader.com/support/helpG...ermination.htm

    This would trigger if you cancel a strategy or disable a strategy. There is not a method to tell when a strategy is not running.

    Leave a comment:


  • antrux
    started a topic Action on Strategy Script Exit

    Action on Strategy Script Exit

    I've searched all around but may not be using the proper terminology as I get a lot of exit on close results instead. I'm looking to perform an action if the strategy is cancelled or exits or better yet a method to do something if a strategy isn't running in the background.

    We have OnStartUp() but nothing on close.
    Any suggestions?

    Thanks in advance,

Latest Posts

Collapse

Topics Statistics Last Post
Started by ezrollin, Yesterday, 11:17 PM
0 responses
5 views
0 likes
Last Post ezrollin  
Started by grasshopperguru79, Yesterday, 09:09 PM
1 response
27 views
0 likes
Last Post NinjaTrader_EricB  
Started by Barry Milan, Yesterday, 07:52 PM
1 response
8 views
0 likes
Last Post NinjaTrader_EricB  
Started by BarzTrading, 11-07-2018, 09:50 PM
4 responses
390 views
0 likes
Last Post quantismo  
Started by justanewbe, Yesterday, 06:31 PM
8 responses
38 views
0 likes
Last Post justanewbe  
Working...
X