TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
NinjaTrader Desktop

NinjaTrader Day vs. GTC vs. GTD Check When a Working Order Expires

Time in Force, or TIF, controls the lifetime of an order’s unfilled quantity. Use the same hypothetical MES order to compare what happens when the session ends and what to verify before the next one.

Quick Answer

Day orders can work through the current trading session. GTC means good till canceled, subject to broker and contract rules. GTD means good till date and uses the selected date’s session cutoff. Available settings and cancellation handling depend on the connection.

Start 7-Day TrialFind the TIF selectorCheck GTD on a disconnect
Comparison

One unfilled limit order across two sessions

Run three fictional trials on an active dated MES contract. Submit the same buy limit near the end of a normal Monday session. Assume the order remains unfilled, no other cancellation occurs and the connection supports the selected choice.

Time in force
After Monday’s session ends
After Tuesday’s session ends
DAY
Unfilled order is canceled at the Monday cutoff
No open order from Monday
GTC
Can remain active
Can remain active
GTD set for Tuesday
Can remain active
Unfilled order is canceled at the Tuesday cutoff if expiration is processed

Use the broker’s cutoff for that contract and trade date. The local clock turning to midnight or a chart switching sessions does not confirm cancellation.

Set or verify time in force on NinjaTrader Desktop

Choose the account and dated instrument in your order-entry window. Find the TIF selector. If GTD is available, selecting it exposes a date selector. Review the date, price and size before submitting a simulated order.

In Control Center → Orders, match the account, contract, action and order ID. Check the TIF column and confirm State, Filled and Remaining. If the row disappeared when the session ended, remove the active-only filter. Use the broker record if the current-day Orders grid has rolled over.

If you use NinjaScript, its TimeInForce property applies to strategy orders and depends on broker and exchange support. A strategy can also have its own cancellation logic. Compare the order’s actual state with the strategy event and broker record before attributing a cancel to its TIF.

Why GTD depends on who handles expiration

Ask the broker whether the selected route supports native GTD or simulates it. NinjaTrader’s state documentation describes a Rithmic case where it submits a GTC order and simulates the requested date. That case requires NinjaTrader to stay connected for the simulated expiration to work.

If you lose the connection around the chosen cutoff, verify the status with the broker when you can reach it. Compare the original order ID, date and remaining quantity. The date you entered does not establish the final state if the cancellation depended on a disconnected platform.

Also check the actual contract expiry and holiday schedule. A GTC or GTD setting cannot keep the original order eligible after the dated contract stops trading.

Check the position after a Day order partly fills

Change the Monday example to two MES. One fills before the cutoff and the remaining one is canceled with no other fills. Orders should show one filled and no active remainder after cancellation confirms. Executions records the fill. Positions still shows long one MES if there were no other trades.

Sources

Official References

Platform details on this page were checked against these official resources.

NinjaTrader Desktop TIF selectorFind the available choices and the GTD date control.NinjaTrader Desktop order state definitionsRead the GTD simulation and connection note.NinjaScript TimeInForceCheck strategy properties and broker support.NinjaTrader Control Center OrdersVerify the TIF column, quantities and state filters.
Related Guides

Keep Building the Rule System

Read NinjaTrader order states

Differentiate a working order, an execution and a cancellation confirmation.

Check the dated futures contract and rollover

Verify that a chart switch also points to the instrument you intend to trade.

Check where NinjaTrader orders are held

Confirm the behavior of entry and protective orders on your connection.

FAQ

Common Questions

Does a NinjaTrader Day order expire when I close the chart?

Day refers to the trading session cutoff. Order handling after a disconnect depends on the broker and connection. Verify the current order record before relying on a local display change.

Why can’t I select GTD?

Available TIF choices depend on the selected connection. Ask the broker which choices are supported for that account, contract and platform.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.