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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X