Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can NT send a limit order with an if filled target & stop attached held with Broker

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

    Can NT send a limit order with an if filled target & stop attached held with Broker

    Is it possible with NinjaTrader to send a limit order with an if filled profit target and stop loss where all orders are held on the broker side instead of having the target and stop loss stored locally?

    The broker in question is Interactive Brokers. Their platform does support this but I'm not sure it's possible to execute strategies in this way?

    Thanks in advance for the reply.

    #2
    suprsnipes, yes you would need to ensure that 'Local OCO' in unchecked in your IB account connection setup - http://www.ninjatrader.com/webnew/su...ivebrokers.htm

    If you're using then the Set() methods in NinjaScript the stops and targets would be OCO'ed on IB's servers.

    Comment


      #3
      Where could I find more information on this?

      Do you mean the following?

      Code:
      SetProfitTarget("", CalculationMode.Ticks, 1);
      Local OCO is unchecked also.

      Comment


        #4
        Yes, correct, you could find into under SetStopLoss and SetProfitTarget in the helpguide -





        > If a stop loss or trail stop order is generated in addition to a profit target order, they are submitted as OCO (one cancels other) <

        Comment


          #5
          Excuse me for still asking questions on this subject but this is how I have the strategy setup at the moment, except the only order that is being held at the broker side is the entry limit, there is no target or stop attached, the stop and target are only sent to the broker after the trade as been filled...

          Is this normal behavior?

          Has it got anything to do with where the code is placed? I have the stop and target in the initialize section.

          Comment


            #6
            suprsnipes, no this expected the entry has to fill first and then stop and target are send OCO'ed together.

            Comment


              #7
              Originally posted by suprsnipes View Post
              Is it possible with NinjaTrader to send a limit order with an if filled profit target and stop loss where all orders are held on the broker side instead of having the target and stop loss stored locally?

              The broker in question is Interactive Brokers. Their platform does support this but I'm not sure it's possible to execute strategies in this way?

              Thanks in advance for the reply.
              I should probably elaborate on my initial post.

              Let's say for example I have a long limit entry order sitting below the market with a target and stop set in the initialize section, so essentially the only order at the broker from my understanding is the long limit entry. The problem with this is if I loose connection to the broker for some reason then it's possible my long limit entry order could be filled with no target or stop loss because NinjaTrader holds them locally...

              Is there anyway around this?

              Comment


                #8
                suprsnipes, thanks for clarifying, unfortunately not, NinjaTrader needs to have connectivity to the broker to receive execution info from your entry and then it can send out the OCO'ed exit bracket (stop and target). If now you're connection goes down and for example the target executes, the stop would be cancelled on the broker server side, provided you enabeld native OCO for the IB account connection you were using.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                633 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                364 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                567 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                568 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X