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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X