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 JackyP, 07-25-2023, 08:39 AM
    3 responses
    315 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by TiffanyMiller, Yesterday, 10:19 PM
    0 responses
    4 views
    0 likes
    Last Post TiffanyMiller  
    Started by algospoke, 05-13-2024, 06:53 PM
    12 responses
    135 views
    0 likes
    Last Post algospoke  
    Started by psangram, Yesterday, 06:35 PM
    0 responses
    4 views
    0 likes
    Last Post psangram  
    Started by Alaina19, 07-14-2024, 04:38 PM
    2 responses
    16 views
    0 likes
    Last Post Alaina19  
    Working...
    X