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 traderqz, Today, 12:06 AM
      5 responses
      8 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Mongo, Today, 11:05 AM
      2 responses
      7 views
      0 likes
      Last Post Mongo
      by Mongo
       
      Started by guillembm, Today, 11:25 AM
      0 responses
      3 views
      0 likes
      Last Post guillembm  
      Started by Tim-c, Today, 10:58 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by traderqz, Yesterday, 09:06 AM
      4 responses
      29 views
      0 likes
      Last Post traderqz  
      Working...
      X