Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Managed mode - what is fastest place for sending PT and SL?

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

    NT Managed mode - what is fastest place for sending PT and SL?

    My question is tied to managed mode primarily, but maybe
    this is valid is valid also in unmanaged mode (not sure):

    Is there any difference, where I set the PT and SL:
    A) before execution (in most examples PT/SL are set in OnBarUpdate() method)
    B) or immediately after execution? (i.e. onExecution() method immediately after fill)

    I am thinking in this way:
    Maybe, in scenario A) is Ninja sending my orders to exchange in format IF - THEN - OCO,
    what would result in immediate setting PT and SL after order fill - which would be faster,
    than waiting for fill confirmation and then sending PT/SL orders.

    But if there is no IF-THEN-OCO order sent by Ninja, then the both scenarios A)and B)
    should be the same - in terms of execution speed.

    Thank you for explanation
    Michal

    #2
    Hello Michal,

    Thank you for your post.

    Whether the Set() method is set in the OnBarUpdate() or OnExecution() method, it is sent to the broker in the same manner. The OnBarUpdate() method will submit the Set() method when a bar updates, where OnExecution() will submit the Set() method when an execution is made. There is no difference in how the order(s) is sent to the broker/exchange.

    You may be interested in the order state definitions at the following link: http://www.ninjatrader.com/support/h...efinitions.htm

    And information on where your orders reside at the following link: http://www.ninjatrader.com/support/f...ead.php?t=5349

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thank you Patrick for explanation,
      I understand it now very well
      Best regards
      Michal

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      68 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X