Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Entry (DAY order) vs. Stop/Limit Exit (GTC)

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

    Market Entry (DAY order) vs. Stop/Limit Exit (GTC)

    Hi all,
    my live running strategy entries on market orders. I had to switch TIF from GTC to DAY since the order routing was not possible and came up with errors when I had TIF set to GTC. This makes sense, because market orders obvisouly can't have a GTC setting.

    So that is fine and logic, but the problem now comes with my exit orders (limit + stop), which shall work as GTC.

    How can I set the limit and stop orders to GTC while entering on a market order?

    Many thanks
    Last edited by JavaKing; 02-18-2021, 04:16 PM.

    #2
    Hello JavaKing, thanks for writing in.

    If your connection is through TD Ameritrade, the strategy using Market orders must be set to Time In Force = DAY. Unfortunately, this must be set up on Strategy initialization, so there would be no way to exclusively set your exit orders to TIF = GTC at run time. The strategy would be able to use the GTC time in force if the entry order were not a Market type order.

    Please let me know if I can assist any further.

    Comment


      #3
      Hi Chris,

      thanks for your reply.

      I don't trade with TD Ameritrade.

      Did I understand correctly that it is not possible to have a market entry order with stop and target GTC order?

      Thank you!

      Comment


        #4
        Hello JavaKing, thanks for your reply.

        Market orders should be working with a GTC time in force setting, it works in my tests. Is your broker rejecting market orders with a TimeInForce of GTC? I also was able to change the strategies TimeInForce setting during run time like so:

        Code:
        this.TimeInForce = TimeInForce.Day;
        EnterLong(1);
        this.TimeInForce = TimeInForce.Gtc;
        I look forward to assisting.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        43 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        47 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X