Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATI Using TargetOrders

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

    ATI Using TargetOrders

    Hello,

    I'm using the .NET ATI interface. I have a ATM strategy named "TEST1234". It has 1 stop and 1 target. Here is my place command:

    Code:
    Dim atmID As String = NTClient.NewOrderId
    Dim RC as string = NTClient.NewOrderId
    NTClient.Command("Place", "SIM101", NTSymbol(market), side, 1, "Limit", price, 0, "Day", "", RC, "TEST1234", atmID)
    Everything works correctly, I can see the orders along with the ATM strategy ID on NT6. However, after the entry order is filled and stop and target orders are placed, I try the TargetOrders command using the atmID that was generated above, and get nothing. The same goes for StopOders.

    Please let me know if I am doing somthing wrong. Thanks in advance.

    #2
    You are generating atmId from an orderId. This may not be what you want to do. Generate your own strategyId for it; not an orderId.

    Then also please use this to ensure you are checking the right ID.
    Code:
    string Strategies(string account)
     Gets a string of strategy ids of all ATM strategies of an account separated by '|'. Duplicate ID values can be returned if strategies were initiated outside of the ATI.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the quick reply. I figured it out, I was calling the command to quickly after the ATM entry order was filled.
      Last edited by mvberg; 01-23-2009, 04:23 PM.

      Comment


        #4
        Great. Glad you got it resolved.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        77 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        45 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        27 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        63 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X