• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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 aslane, Today, 02:31 PM
      0 responses
      8 views
      0 likes
      Last Post aslane
      by aslane
       
      Started by stoner, 10-16-2019, 01:38 PM
      5 responses
      47 views
      0 likes
      Last Post sledge
      by sledge
       
      Started by music_p13, Today, 12:04 PM
      1 response
      24 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by zaro33, Today, 10:55 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Heath  
      Started by itrader46, Today, 10:16 AM
      5 responses
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X