Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

manage order by 3rd party code

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

    manage order by 3rd party code

    Is there a way (API?) to manage the exit of an order generated from within a strategy from outside the strategy?

    Specifically i would like to move stops and targets on a multi contract entry (entry determined by logic in the strategy) from a program running concurrently with Ninja.
    The strategy might or might not be using DOM/ATM facilities.

    Thanks

    #2
    Hi Roland, not a full API unfortunately but an Automated Trading Interface that should offer what you seek here : http://www.ninjatrader.com/support/h...terface_at.htm

    Here's all you could do with this inferface -

    Comment


      #3
      pick up id of trade not entered with DLL

      Thanks Bertrand
      The DLL appears to be the right interface, but I could not tell from the descriptions
      if I could pick up from the DLL interface the details of a trade entered from strategy, i/e. a trade that was started not using the DLL API.

      Can you tell me which call[s] would do that?

      Comment


        #4
        Hi roland_nt,

        You could look into these two from the dll functions page:

        string Orders(string account)
        Gets a string of order ID's of all orders of an account separated by '|'. *If a user defined order ID was not originally provided, the internal token ID value is used since it is guaranteed to be unique.

        string OrderStatus(string orderId)
        Gets the order state (see definitions) for the orderId. Returns an empty string if the order ID value provided does not return an order.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          pick up id of trade not entered with DLL

          Ryan:
          Just to be very certain,
          1) the order id string WOULD contain orders generated from within a running strategy?
          2) Is the name of initiating strategy indicated somehow?
          3) are closed orders (trade completed) also in the list or only open/unfilled
          Thanks for your patience

          Comment


            #6
            Roland, it would give you access to order running on the specified account, this can include automated ones, too.

            You can check for the StrategyID field of the order.

            It should give you the orders string for the session being run.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            646 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            367 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            570 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X