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 proptrade13, Today, 11:06 AM
    0 responses
    1 view
    0 likes
    Last Post proptrade13  
    Started by kulwinder73, Today, 10:31 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by RookieTrader, Today, 09:37 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by terofs, Yesterday, 04:18 PM
    1 response
    24 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X