Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy disabling itself

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

    Strategy disabling itself

    Click image for larger version

Name:	image.png
Views:	170
Size:	15.5 KB
ID:	1232679


    Hi I am running an strategy, it works as intended but most times it suddenly stops working and disables by itself. Sometimes it happens 10 min later sometimes 2 min after enabling strategy. This is Log report i get, anyone have any way of trying to fix it.

    Thanks in advance

    #2
    Hello ishcan,

    Thanks for your post.

    The strategy error is advising that something you are accessing in the strategy has not been created at the time you are accessing it. There is no specific thing I can advise as to the source of the error.

    To determine what the source of the error is you will need to debug your strategy. This is typically done with print statements added to your code to send a print output to the New > Ninjascript Output window. As you do not know where the error is, you would add a print statement every few lines of code and then observe the output window when you apply the strategy. The last print statement value shown in the output window would indicate the error occurs after that print statement, you can then add further print statements to zero in on the offending code.

    Here is a link to our tips on debugging: https://ninjatrader.com/support/help...script_cod.htm

    For information about the Indicator error, see this forum thread: https://ninjatrader.com/support/foru...006#post775006

    Please let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X