Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Attempting to modify any ATM order leads to separating it

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

    Attempting to modify any ATM order leads to separating it

    Hello,

    In my addon, I'm trying to modify existing ATM exit orders.
    The problem shows up when there are a number on contracts like 10+.
    Attempting to modify any ATM order leads to separating it from the order of the rest of the orders.
    So, when I'm trying to move the orders with my mouse it only moves one or two orders and not the rest of them.
    Can you please suggest any workaround?

    Thanks

    #2
    Hello frslvr,

    In what way are you trying to modify the ATM order? Generally when you use ATM's it would be up to the ATM to make the adjustments based on its template. Strategies specifically have special methods to work with ATM's but addons do not, addons can only submit ATMs and any changes made would be similar to making manual changes to the ATM's orders.

    Comment


      #3
      I develop an addon as an indicator. Here is how I change orders.

      Code:
      var orders = account.Orders.ToList();
      var order = orders.Last(); // for example
      order.LimitPriceChanged = price; // The problem starts here even if I don't call Change(orders)
      account.Change(orders);

      Comment


        #4
        Hello frslvr,

        I would suggest trying to use a strategy for this type of task instead of an addon. Strategies have a specific method that can be used to change the ATM. Keep in mind the script you are using needs to submit the ATM to manage it, if you manually submit an ATM that won't be able to be controlled by the strategy.




        The alternative would be to not use an ATM and just control limit orders using your addon.

        Comment


          #5
          Thank you for your reply Jesse,

          I know about strategies but in this project, I can't use strategy because I have to control multiple accounts and multiple instruments. There are also many other reasons why strategy won't work here.
          Can you give any advice on the current circumstances?
          I just want to be able to glue the orders back together or make them not split in the first place.

          Comment


            #6
            Hello frslvr,

            In this case you may need to just use your own orders instead of an ATM. There is not any suggested way to modify ATM orders from an addon because it has no defined methods to do so like a strategy. An addon works just like a manual tool like the char trader, it expects any changes you make to the ATM are going to be completed manually from one of the existing tools like the chart.

            Comment


              #7
              My tool is supposed to correct users' orders to avoid excessive risk. So I can't use strategy or own orders.
              The method I use works 99% but this strange behavior spoils the experience.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              574 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              333 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X