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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      668 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      377 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X