Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy and ChartTrader Conflict

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

    #16
    I am confused.
    Is it a bug that SetStopLoss and SetProfitTarget cannot be simutaneously enabled from a Ninja script? And is this a problem that is to be resolved?

    Comment


      #17
      Camdo,

      There is no bug. This is a regulatory limitation. You cannot place a stop and target at the same time to a stock with MBT.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        I realize The regulatory limitation.

        What I want is to program a NinjaScript strategy to perform the same way as an ATM strategy.

        Comment


          #19
          Camdo,

          It already behaves the same way. Both from NS strategy or from ATM will result in rejected orders. If you want it to behave in a way that you can have it bracket your trade you will have to program one at a time. Submit a stop order. When price moves closer to the other direction, cancel the first and submit the other.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            I will try CancelOrder(IOrder order) method. Thanks for the tip.

            I will also investigate why my ATM strategies are accepting bracketed orders. They must be in simulation mode. I understand simulated stoploss is possible, but I am not aware that simulated ProfitTarget is a possibility.

            I assume that ATM is just a preprogramed interface using the same order handling code as NinjaScript would have available to it. Is that true?

            Comment


              #21
              ATM and NinjaScript ultimately boil down to the same "interface", yes.
              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
              616 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              357 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
              561 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              566 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X