Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lagging when executing trade

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

    Lagging when executing trade

    HI
    Today i noticed strategy was laggin in executing (removing) SL and TP when trade closed. Like there is a delay of up to a second for Order line to disappear.
    What can be done about it?
    Its an unmanaged strategy

    P.S Is there a script to check how fast some functions or programs execute in NT?
    Last edited by tkaboris; 02-23-2023, 05:05 AM.

    #2
    Hello, thanks for writing in. You can first confirm exactly when the execution occurs by using OnExecutionUpdate:



    If you have many addons and a large workspace this might also be causing a performance issue. You can check the performance by opening the NinjaScript Utilization monitor:

    Comment


      #3
      Thank you for your resonse.
      In my unmanaged strategy there is no OnExecutionUpdate

      i only have protected override void OnOrderUpdate()

      I also noticed laggin happens with ES trading, on NQ there is not lag almost. Dont know if it matters
      Last edited by tkaboris; 02-24-2023, 06:25 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X