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

Flatten on Disable?

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

    Flatten on Disable?

    Hello

    I have a strategy that for some reason intermittently becomes disabled, often leaving me with an open position.

    Is there a setting or anything that I can use so that when one of these random disables happens it will flatten any open positions?

    #2
    Hello calebsandfort, thanks for your post.

    The default behavior for error handling is "Stop Cancel Close" which means if the strategy hits an error like an order rejection the strategy will disable, cancel all resting orders, and close any open positions. Do you see any errors in the log tab of the Control Center about order rejections? If so what do they say?

    If you are unable to find any problems in the log tab, I will need to take a look at your log and trace files.

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris

      Thanks for the response. Looked at the log and trace files and there were no errors. I am using the default behavior as you mentioned above.

      I've attached the log and trace files just in case I missed something.

      The disabling occurred at 10/15/2020 7:59

      Attached Files

      Comment


        #4
        Hello calebsandfort, thanks for your reply.

        The strategy is not coming across any order rejections from what I can see in the log file. Do you see the same thing happening when you run the SampleMACrossover strategy? If not, there is something in the custom strategy causing the problem.

        I look forward to hearing from you.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ZenCortexAuCost, Today, 04:24 AM
        0 responses
        5 views
        0 likes
        Last Post ZenCortexAuCost  
        Started by ZenCortexAuCost, Today, 04:22 AM
        0 responses
        2 views
        0 likes
        Last Post ZenCortexAuCost  
        Started by SantoshXX, Today, 03:09 AM
        0 responses
        15 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        3 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        42 views
        0 likes
        Last Post yertle
        by yertle
         
        Working...
        X