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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        31 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, Yesterday, 02:41 AM
        0 responses
        14 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        22 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        34 views
        0 likes
        Last Post CarlTrading  
        Working...
        X