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 f.saeidi, Today, 08:01 PM
        0 responses
        2 views
        0 likes
        Last Post f.saeidi  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        3 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        96 views
        1 like
        Last Post caryc123  
        Started by algospoke, 04-17-2024, 06:40 PM
        6 responses
        49 views
        0 likes
        Last Post algospoke  
        Started by arvidvanstaey, Today, 02:19 PM
        4 responses
        11 views
        0 likes
        Last Post arvidvanstaey  
        Working...
        X