Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to lock out trader from submitting orders via code

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

    How to lock out trader from submitting orders via code

    is it possible to use NT API to lock out a trader from submitting further orders until the next day or at a certain time?

    I have been able to lock the user from submitting orders when certain conditions are met, but when NT is restarted the trader can continue to trade.

    Any code examples or pointers in the right direction would help.

    Paul.

    #2
    Hello phayes,

    That would not be possible and we also can't make any suggestions on how to prevent a user from doing actions that the platform offers. Per the platforms design the user should always be able to manage their account without any third party item blocking their way, that could lead to the user being unable to manage their account in a critical situation.

    You can turn on account level loss limits which prevent you from trading if you hit a certain loss amount. If you use a NinjaTrader account that is found on the page https://account.ninjatrader.com/settings/accounts

    Comment


      #3
      Thanks, Jesse, I agree that a 3rd party should not completely block the trader, thanks for your insights.

      Comment

      Latest Posts

      Collapse

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