Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy disaster protection

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

    strategy disaster protection

    Hi There,
    I have been running an automated strategy in real time now for a few months with CalculateOnBarClose = True with no problems. After doing some testing I have found running the strategy on incoming ticks yields better results. I have made necessary adjustments in my code to handle the on demand processing but I worry of a potential black swan case where my system enters into a bad state of some circular logic where orders can potentially get placed very rapidly and unintentionally.

    Obviously this comes down to me writing sound code, but aside from that. Is there any other protective methods/conventions you could recommend to prevent a case where lets say more than 10 orders get placed in a 5 second period? I use unmanaged order entries and it is possible for my system to place a couple orders all within one tick , but its unlikely there would ever be more than 5 or 6 orders placed at once.

    So is there anything I could use/write that would prevent a disaster scenario ( dropped data feed connection, ninjatrader freeze, etc etc) that would shut down the system in a case like this, if more than X amount of orders are detected? I imagine I can write some sloppy code myself to do this but essentially looking for a more robust/cleaner way!

    Thanks!

    #2
    Hello slocumtrader,

    Using the Unmanaged Approach, code would be the only thing that you can use inside of NinjaTrader to be able to limit the amount of orders that your strategy has placed.

    You may want to contact your broker to see if there is any Risk Management settings that they can place on your account for a case such as this to prevent it on their side if you are worried about too many orders being sent.
    JCNinjaTrader Customer Service

    Comment


      #3
      alrighty, that is what what i figured. thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      596 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      554 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X