Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

One long order + one short order with "liveUntilCancelled=true" doesn't work

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

    One long order + one short order with "liveUntilCancelled=true" doesn't work

    I have implemented two long orders with EnterLongStop and
    liveUntilCancelled=true and it works. Both orders will be triggered while trading session, but if I add to the two long orders a short order with
    liveUntilCancelled=true parameter the short order will never be executed. The Long orders comes first in source code. If i switch the position (short order first and then the long order), the long orders will never be executed.

    At the output screen i got the message:
    "Ignored PlaceOrder() method at 03.03.2009 10:00:00: Action=SellShort OrderType=Stop Quantity=500 LimitPrice=0 StopPrice=7,57 SignalName=Short Entry1' FromEntrySignal='' Reason='An Enter() method to submit an entry order has been ignore. Please search on the term 'Internal Order Handling Rules ..."

    Why it doesn't work?

    #2
    chrismasterlu,

    You cannot place simultaneous working orders in the opposite direction. Please see the Internal Order Handling Rules here: http://www.ninjatrader-support.com/H...tml?Overview36
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,
      Is there no way around this? Lets say I'm trading a channel and want to place an Enter Above the Channel on a Stop and Enter Below the Channel on a Stop. (according to the Internal Handling Rules I can't do that, yet I can manually do it via OCO in Chart Trader.) When one gets hit, the other cancels.
      If I can't use EnterStopLimit, any idea what I can use?
      Thanks,
      Joe

      Comment


        #4
        Joe,

        What a lot of our users do is just submit one order at a time. If the price moves closer to the other order the will cancel the first and submit the second. If price comes back towards the original, cancel the second, resubmit the original.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          chrismasterlu,


          for thos purpose I split the strategy into 2 strategies, strategy1 handles the short case and strategy2 handles the long case.

          Then I run both strategies at the same time.
          Both Strategies open the respective positions and on the account the net position seems to correspond!

          @ NT team,

          could you please confirm this since I am doing above only since yesterday and I might be wrong

          Andreas

          Comment


            #6
            Andreas,

            That is another approach many users like to use as well.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Zweistein, you're right. I did it how you said. But i want to backtest my strategy and so i have to do it twice. Once for the long side and once for the short side. but it work's.

              Comment


                #8
                Yeah, I've had the strategy running both of these ways. I would just like to submit both the EntryStop orders at the same time as OCO. Oh well... perhaps the Ninja coders will give us the ability to make a script that does everything we can do with chart trader one of these days.
                Thanks.
                Joe

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                576 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                334 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                553 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X