Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Disabling NinjaScript

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

    Disabling NinjaScript

    I have an automated strategy that works fine, but once in awhile NT disables it while it is running, and the log shows no errors occured. The frequency of disabling is not an issue with me, but I run it unattended (still at home, just not always infront of the computer) and was wanting to know if there is a way I can add some coding to my strategy that will sound an alert if the strategy disables itself?

    A second question; I've been running my script for a few months now with no issues. My strategy uses the "Managed Approach". I understand with the "Unmanaged Approach" I have to add my own error checking for orders filled, loss of internet connection, etc. but my understanding is that with the Managed Approach NT uses built in error checking for orders being accepted, loss of internet connections and so forth. Is my understanding correct and if using the Managed Approach, would it be unwise to run my strategy totally unattended ( away from my house), or should additional error checking be added to my code to do this safely?

    Thanks for your time.

    Safetrading

    If so, could you direct me to any snippets?

    Thanks,

    Safetrading

    #2
    Hello safetrading,

    You can use the OnTermination() to be able to send an Alert() when your strategy is terminated. See the following links below about OnTermination() and Alert().

    OnTermination: http://www.ninjatrader.com/support/h...ermination.htm

    Alert(): http://www.ninjatrader.com/support/h...html?alert.htm


    As for your second question Managed and Unmanaged Approach, it is more of a difference between order handling and having some rules instead Connection Loss handling itself. If you do not want to be restricted by rules then you would want to use the Unmanaged Approach but you would want to monitor your orders. Here is a link that goes over more about the Managed vs Unmannaged Approach that you may view.

    http://www.ninjatrader.com/support/h...er_methods.htm

    You can still set the the ConnectionLossHandling in either Managed or Unmanaged Approach. See the following link for more information about the ConnectionLossHandling.

    http://www.ninjatrader.com/support/h...t7/index.html?connectionlosshandling.htm

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X