Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issue with size in atm

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

    Issue with size in atm

    Hi,
    I am having an issue with the atm. When I move the stop or the target manually by hand the size resets back to size 1.
    I have an indicator that detects new orders and it adds one contract to the target or stop and here's how I do it.

    Code:
    foreach (Order order in Account.Orders) {
    //if its Stop1 or Target1
    order.Quantity += 1;
    }
    How can I keep size 4 when moving the target or the stop manually?
    Attached Files

    #2
    Hello PWillard,

    This may be that the original order settings from the template is being used when doing the modification. You could confirm that by using a greater than 1 quantity in the template and then retesting the steps to see this. The way you are modifying the order is also unusual, to correctly change an order you could use the Change method


    I would suggest trying to do the change of quantity using Change() and see if the same result happens when manually modifying the order.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    589 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    342 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    555 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X