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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X