Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OCO support?

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

    OCO support?

    Hey Ninja gurus,

    After getting entries I like, I'm working on my exits. I'm experimenting with scaling out of positions in thirds as the position goes in my favour but dumping en mass as it goes against me. In other sections, the recommendations for this seem to be to take three entries so that you can use the SetStopLoss and SetProfitTarget independently. For backtesting I suppose that works, but it's an awful mess for live strategies since it will probably mean trading in odd-lots (which means a lot of slippage) and three times as many orders as necessary (which means a lot more commissions).

    I did some experiments and found that if I take some manual exits then the stoplosses adjust their size appropriately which is cool and 50% of what I'm looking for. What I'd really like is to be able to post exits for my partials and have this order join the OCO stoploss group so I don't have to worry about being stopped out and having my partial order targets still floating out there. No doubt with extra code and the OnPositionUpdate event I can work around this, but it would sure be nice if there was support for this.

    I've looked around the docs but can't see it. Is there a way to add an order to a OCO group?

    #2
    Unfortunately not
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks Ray.

      With the new support for OnPositionUpdate, at least we have the capability of simulating this. I can live with that!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by llanqui, Today, 10:32 AM
      0 responses
      2 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,992 views
      3 likes
      Last Post johntraderuser2  
      Started by TAJTrades, Today, 09:46 AM
      0 responses
      8 views
      0 likes
      Last Post TAJTrades  
      Started by rhyminkevin, Yesterday, 04:58 PM
      5 responses
      62 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by realblubb, Today, 09:28 AM
      0 responses
      8 views
      0 likes
      Last Post realblubb  
      Working...
      X