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

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 frandepaulapr, Today, 04:14 AM
    0 responses
    5 views
    0 likes
    Last Post frandepaulapr  
    Started by ThePicsou, 07-22-2024, 11:36 AM
    4 responses
    30 views
    0 likes
    Last Post ThePicsou  
    Started by marco231, 03-20-2024, 03:56 PM
    7 responses
    175 views
    0 likes
    Last Post marco231  
    Started by Irukandji, 04-22-2024, 04:33 AM
    7 responses
    37 views
    0 likes
    Last Post Irukandji  
    Started by Irukandji, Today, 01:56 AM
    0 responses
    6 views
    0 likes
    Last Post Irukandji  
    Working...
    X