Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Updating LiveUntilCancelled Orders

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

    Updating LiveUntilCancelled Orders

    Hello

    I've started looking seriously into LiveUntilCancelled orders .

    I'd like to know what is the best method to update such an order ?

    I'm already keeping track of the IOrders.

    #2
    zark.be, you can update any order by resubmitting it using the same signal name, it would be amended then as needed.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      What happens to the IOrders ?

      Is the one I'm holding on to will be updated ? Should I discard it and save the new one generated by the function ?

      Comment


        #4
        I'm having the problem of an order getting executed multiple times.


        Can i programmatically query all working orders from NinjaTrader ? as to be able to check why i have multiple "TGT 1" getting hit even though after getting hit the first time my strategy does not send anymore.

        Comment


          #5
          zark.be, the IOrders would be updated as well with your new order if not executed.

          If you're not seeing executions then it means after hitting a terminal state you're not resetting the IOrder object to null again to 'recycle'.

          Here's an example showing the core logics - http://www.ninjatrader.com/support/f...ead.php?t=7499
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Originally posted by zark.be View Post
            I'm having the problem of an order getting executed multiple times.


            Can i programmatically query all working orders from NinjaTrader ? as to be able to check why i have multiple "TGT 1" getting hit even though after getting hit the first time my strategy does not send anymore.
            That would depend on how you are handling the IOrders. Maybe you could show how you are handling the entries, while not showing the secret sauce that creates the entry conditions, so that we can see what you are doing, and why it seems to be misbehaving ?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by trilliantrader, 04-18-2024, 08:16 AM
            4 responses
            18 views
            0 likes
            Last Post trilliantrader  
            Started by mgco4you, Today, 09:46 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by wzgy0920, Today, 09:53 PM
            0 responses
            10 views
            0 likes
            Last Post wzgy0920  
            Started by Rapine Heihei, Today, 08:19 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 08:25 PM
            0 responses
            10 views
            0 likes
            Last Post Rapine Heihei  
            Working...
            X