Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Anyone used CreateOrder() to create OCO Order before?

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

    Anyone used CreateOrder() to create OCO Order before?

    I have a strategy for a range which goes long on breakout of range and short on breakdown with attached ATM Strategy.
    I realized it with OIF, it works but it is not easy to handle.

    Now I found a Method in public class Account : IObjectHelper, IObjectNotification

    public Order CreateOrder(Instrument instrument, Action action, OrderType orderType, TimeInForce timeInForce, int quantity, double limitPrice, double stopPrice, string oco, string name)

    Who has used this Method ?
    Is it possible to attach an ATM Strategy to this created order ?

    #2
    Hi 51friend,

    CreateOrder() is not something I can offer support for.

    Consider using AtmStrategyCreate() for created strategy to call on an ATM Strategy. See the sample at "Tools>Edit NS>Strategy"
    TimNinjaTrader Customer Service

    Comment


      #3
      Hi 51freind, you can not create ATM Strategy with CreateOrder
      You have to use OIF if you want OCO handling

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      60 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      147 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      284 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X