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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      55 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X