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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X