Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

More than 100 subsequent user events

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

    More than 100 subsequent user events

    Hello,

    I'm using orders OCO when I get a filled. Then I send an order to take-profit and other to stop-loss, related them by an exclusive id-oco (exactly the token of the entry order).

    The system is very intensive (1min, entry orders, reverses, etc), and after about 150 trades get this error:
    "Error on calling OnOrderUpdate method for strategy XXXXXX. More than 100 subsequents user events."

    I guess that these were "Cancel OCO orders" events that are pending to run by NinjaTrader. (I am not using user events for myself)

    Within NT7B14 and Unmanaged = true.

    Thanks

    #2
    Hi,

    We would see the log and trace to see if there's any additional information is listed.

    Send it from within the software under Help--> Mail to support. In addition, please refer to this post.
    Vince B.NinjaTrader Customer Service

    Comment


      #3
      cls71,

      What you will need to do in the code is go through it and have it wait for tasks you tell it to do to complete. If you are cancelling, wait till the order is finished cancelling before submitting another cancel on the same order. That would be one reason why you could queue up many many cancel requests, if the code just keeps calling CancelOrder() till the order cancels.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Thanks,

        I was able to solve it.

        (Before sending a new order or task, I wait to receive confirmation that the previous has been completed).

        Regards

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        34 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        29 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        36 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        33 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        143 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X