Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stops and Targets

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

    Stops and Targets

    Can someone give me some tips on checking if the stops and targets are from an ATM strategy template? Or how to check if stops and targets are linked to a specific ATM strategy template?

    #2
    Hello luxurious_04,

    Thanks for your post.

    From the Account class, you can access a private OnOrderUpdate() and check to see if the order is tied to an ATM with e.Order.GetOwnerStrategy != null

    You can check the ATM strategy name with:

    if (e.Order.GetOwnerStrategy() != null)
    {
    AtmStrategy atm = e.Order.GetOwnerStrategy() as AtmStrategy;

    Print (atm.DisplayName);
    }

    References:

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    577 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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