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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      71 views
      0 likes
      Last Post PaulMohn  
      Working...
      X