Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit order with & without GTC?

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

    Limit order with & without GTC?

    Hi

    Is there any difference in the behaviour of a managed entry limit order (e.g. EnterLongLimit) in the following examples?

    In both cases CalculateOnBarClose = false for every tick operation.

    Example 1
    entryOrder1 = EnterLongLimit( nContracts1, entryLevel, entryName1 );

    Example 2
    if( entryOrder1 == null )
    entryOrder1 = EnterLongLimit( 0, true, nContracts1, entryLevel, entryName1 );

    Specifically:
    Where does the limit order reside in each example?
    Does Example 1 send a new order to the trade server every tick?

    Regards
    Tony

    #2
    Tony, per default the orders would expire in NT at the end of the bar they were placed on, in your second example you set them to liveUntilCancelled, so they persist until you cancel or the end of session handling takes care.

    The limit orders is working at your broker / exchange in both cases.

    Comment


      #3
      Thanks, Bertrand

      I understand in the first example, the order expires at the end of the bar, but please clarify two points:
      (a) When CalculateOnBarClose = false, does the order in Example 1 expire every tick or every completed bar?
      (b) In example 1, is the order re-transmitted to the broker every time it expires/re-submits (every tick?) or is the effect that the order remains at the broker unless is it not re-submitted?

      Regards
      Tony

      Comment


        #4
        Tom, it would expire on the next bar update seen, so next tick if COBC is false.

        The order expiring means, it goes through a full cancel and resubmit cycle.

        Comment


          #5
          Thanks, Bertrand.

          I will use GTC.

          Regards
          Tony

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          60 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          145 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          161 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          283 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X