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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          118 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X