Announcement

Collapse
No announcement yet.

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 frslvr, Today, 04:29 PM
              0 responses
              7 views
              0 likes
              Last Post frslvr
              by frslvr
               
              Started by wjadevries, Today, 04:18 PM
              0 responses
              1 view
              0 likes
              Last Post wjadevries  
              Started by shahabjet1, Today, 03:47 PM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by JTizz, Today, 03:21 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by EB Worx, Today, 02:49 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X