Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

is there a way to connect the Stop?/Target? with its entry order in the Order TAB

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

    is there a way to connect the Stop?/Target? with its entry order in the Order TAB

    When we submit an entry order to execute a specified ATM Strategy via the AtmStrategyCreate command, is there a way to determine its associated Stop? and Target? orders when looking at the Order TAB.

    Usually, when an entry order gets filled, it is almost immediatly followed by its Stop? and Target? orders. However, as each order (Entry, Stop?, Target?) has its own unique ID, i can't determined for sure visually to which entry order any particular Stop? or Target? it is associated.

    I was thinking if an entry order has a unique ID such as 'cedgyfhu672gb' its associated orders (Stop?/Target?) would also display this same ID 'cedgyfhu672gb' along with its own ID.

    Something like this:

    orderName= 'Entry'
    ID = 'cedgyfhu672gb'
    ---
    orderName = 'Stop1'
    ID = 'gbh37h890s'
    Entry ID = 'cedgyfhu672gb'
    ---
    orderName = 'Target1'
    ID = 'xbh90jd8k0'
    Entry ID = 'cedgyfhu672gb'

    Can you confirm that it is not possible to visually link any particular entry order and its associated brothers (Stop?/Target?) by simply looking at the order TAB? I have looked at all properties which we can turn on in the order TAB and have not found anything conclusive regarding this matter.

    I'd appreciate any help.

    #2
    Hello trendisyourfriend,

    The Orders tab of the Control Center does not show the AtmStrategyId.

    In code you can get the strategy from the owner with GetOwnerStrategy() (which is undocumented).
    NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrategy("S10_P10", entryOrder); This does not return a strategyID, which is needed for any following action, like closing the strategy. How can I get it? Thanks.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I finally found what i needed following your previous coomment. Thanks

      Originally posted by NinjaTrader_ChelseaB View Post
      Hello trendisyourfriend,

      The Orders tab of the Control Center does not show the AtmStrategyId.

      In code you can get the strategy from the owner with GetOwnerStrategy() (which is undocumented).
      https://ninjatrader.com/support/foru...21#post1085921
      Last edited by trendisyourfriend; 03-18-2022, 06:02 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X