Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Partial closing of position in an ATM strategy within a script

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

    Partial closing of position in an ATM strategy within a script

    Hi,

    Is it possible to close part of the open position initiated with an ATM strategy from within a script ? The only position closing function I see in the Help Guide closes the whole strategy.

    Thanks in advance for your help

    #2
    buylosellhi, correct - Close would just close the whole strategy, do you have seaprate targets perhaps so you could move the exit limit order to fill you immediately if you'd like to shed contracts off the position?

    Comment


      #3
      hi Bertrand, thanks for your reply. the partial exit is based on certain conditions being met and not a predefined Target based exit.
      is there a way to use limit order to be executed like a market order, so I can start with a limit exit far away from entry and then recalculate it within the script ?

      Comment


        #4
        Yes, that's how I would approach it, set the target far enough away from your entry and then move it close as the partial should take place based on your conditions in the script.

        Comment


          #5
          yes. but is there a way to ensure that limit order is entered like a market order ? what if I post a sell limit below the market and a buy limit above ?

          Comment


            #6
            Yes, that's a marketable limit order > should give you an instant fill, since essentially a better price than the one you submitted at (limit order is always this price X or better).

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            647 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            368 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            571 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X