Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Autoliquidation/Trading Locked feature

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

    Autoliquidation/Trading Locked feature

    Hello, I have finished my trade timer app that communicates with ninja and turns on automatically once position is flattened. Is there any way for addon to Autoliquidate/Lock/Prevent account from trading. Would like to lock trading for the duration of the timer and unlock once the timer is over. The only thing I found so far is putting flatten function into a loop, but that doesn't seem too graceful.

    #2
    Hello Matt Skinner,

    There isn't anything supported to prevent a user from placing orders using the regular trade windows.

    However, if you are placing orders solely through an addon, indicator, or strategy, such as by calling order methods from button click handler event methods, you could use logic to prevent the script from calling the order method when the user clicks the button.

    Below is a link to an example of placing orders with button clicks.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 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
    50 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