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