Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set TimeInForce.gtd for AtmStrategyCreate - cant?

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

    How to set TimeInForce.gtd for AtmStrategyCreate - cant?

    Hello, with account.CreateOrder you can specify a time in force date, however with AtmStrategyCreate you cannot.

    Is there a way to update the Entry order after its created via AtmStrategyCreate to do this?

    Thanks

    #2
    Hello firefoxforum12,

    For the targets when using ATM's you need to make any settings changes directly in the template, the Time in force can only be set inside the template for the targets. AtmStrategyCreate is just used to launch the ATM entry order and then it will use the options defined in the template. The entry order can have a time in force set:

    AtmStrategyCreate(OrderAction action, OrderType orderType, double limitPrice, double stopPrice, TimeInForce timeInForce, string orderId, string strategyTemplateName, string atmStrategyId, Action<Cbi.ErrorCode, string> callback)


    Comment


      #3
      OK thanks. I see GTD via that drop down option only lets you pick the DAY not time of day. Feedback please make that far more granular that is not overly great...

      Comment


        #4
        Hello firefoxforum12

        The TIF GTD is good till date, there is currently no TIF options that include specific hours of the day, this is not specific to NinjaTrader.

        To have an order cancelled at a specific hour would require you to add time based conditions into your strategies logic to cancel the order. For ATM entry orders you can use AtmStrategyCancelEntryOrder() or for active ATM's you can use AtmStrategyClose().




        Comment


          #5
          I see, must be a forex thing

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          81 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          66 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X