Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Chris L.NinjaTrader Customer Service

    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.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        4 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        96 views
        1 like
        Last Post caryc123  
        Working...
        X