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

Auto close position

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

    Auto close position

    Hi there,

    How can an add-on programmatically enable or disable the auto close feature for a given instrument?

    Thanks in advance

    #2
    Hello ruppschtaler,

    Thank you for the question.

    I wanted to clarify your question while I research this. First to confirm are you asking about the Tools -> Options -> Trading -> Auto Close Position -> Instrument list?

    If so, are you asking how to both manage the items in the list or do you currently have that part and just need to enable/disable items?

    I will need to research this further to see if there is an exposed method to manage the list or if this would be an undocumented item or feature request.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      Thank you for your quick reply.

      There's a context menu item 'Auto close position' in NT chart trader.
      I need the same feature in my add-on.
      It seems that all I have to do is programmatically add or remove items to Tools -> Options -> Trading -> Auto Close Position -> Instrument list.

      Is there an exposed method to manage the list in my add-on?

      Kind regards.

      Comment


        #4
        Hello,

        Thank you for confirming that.

        As far as I am aware, there is no documented way to do this currently so I will need to see if there are any exposed methods/ways that could be suggested. Once I have more details I will reply back here.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello,

          After further research, it looks like there is currently nothing documented/supported in this area that I could provide. For this, I will need to put in a feature request to expose these options. For the time being, you would need to modify the Tools -> Options -> Trading -> Auto Close Position -> Instrument list or check/uncheck from the chart trader to toggle this.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Hello Jesse,

            Many thanks for your research.
            Do you have an ID relating to this feature request?

            Comment


              #7
              Hello,

              Yes the id was generated and is: SFT-3145

              I look forward to being of further assistance.
              JesseNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Christopher_R, Today, 12:29 AM
              0 responses
              9 views
              0 likes
              Last Post Christopher_R  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              166 responses
              2,235 views
              0 likes
              Last Post sidlercom80  
              Started by thread, Yesterday, 11:58 PM
              0 responses
              3 views
              0 likes
              Last Post thread
              by thread
               
              Started by jclose, Yesterday, 09:37 PM
              0 responses
              8 views
              0 likes
              Last Post jclose
              by jclose
               
              Started by WeyldFalcon, 08-07-2020, 06:13 AM
              10 responses
              1,415 views
              0 likes
              Last Post Traderontheroad  
              Working...
              X