Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop and ProfitTarget in strategy

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

    Stop and ProfitTarget in strategy

    I use Unmanaged = true since I need OCO orders. This works now but I like to have the same fuzzy warm feeling as when doing it manually.

    Stop and ProfitTarget are displayed as single orders in SuperDOM and not like in an ATM strategy with a whole line, know what I mean. How can I achive that programmatically?


    I thought of creating a new ATMStrategy every time but this will not work as I need OCO orders. Any other suggestions?

    #2
    Hello,

    I have forwarded this to our more advanced NinjaScript expert. You should recieve a response shortly.

    Thank you for your patience.
    BrettNinjaTrader Product Management

    Comment


      #3
      Can you please clarify what you mean by whole line so that we may further assist?
      BrettNinjaTrader Product Management

      Comment


        #4
        See attached streenshots. It's better the manual_atm way, but I of course get the strategy one...
        Attached Files

        Comment


          #5
          symphys,

          When you use a NinjaScript strategy they will not necessarily show up on a DOM the same way as an ATM strategy would show up. For your case, if you provided the same ocoID on both of the orders then they will be properly paired. You would need to do this in your SubmitOrder() method calls. http://www.ninjatrader.com/support/h...ubmitorder.htm

          You can also look on the Orders tab of the Control Center to see if they are OCO paired correctly with the same ID.

          Alternatively if you want to be able to adjust the orders on the DOM, I would recommend you just use AtmStrategyCreate() to submit your orders and then it will actually place an ATM strategy trade where you can adjust things manually after the fact.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X