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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X