Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'Internal Order Handling Rules'

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

    'Internal Order Handling Rules'

    I have a strategy that allows stop and reverse. It is working properly when I use EnterLong() and EnterShort(). However, when I change it to use EnterLongStop(numContractsT1,entryPrice,"LongTgt1" ) and EnterShortStop(numContractsT1,entryPrice,"ShortTgt 1")
    I get the following error.
    An Enter() method to submit an entry order at '1/23/2011 11:38:00 PM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.

    I get this error on the first reversal that occurs in the chart and of course the reverse entry does not occur.

    I've studied the Help Guide and still not sure what's happening. Doesn't seem that any of the rules specifically apply to my situation and even if they did I don't understand how I would correct the problem.

    #2
    Hello,

    You are violating one of the following order method rules:

    Methods that generate orders to enter a position will be ignored if:
    A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
    A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
    The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
    The entry signal name is not unique



    Without looking at the code I wouldnt be able to tell you which one. If I was to guess you are submitting and EnterLongLimit() and a EnterShortLimit() at the same time and one of them is being ignored.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Yeah I studied all those rules. Not sure how I could be entering both at the same time but you never know.

      To be specific I'm not using limit orders. I'm using stop orders. Don't think that makes any difference in this case but thought I'd mention it to be sure.

      Here's my code. I stripped out all the extra stuff. Hope this is enough to get the idea of what I'm doing. Not much to it.


      if (long rules are here)
      {
      entryPrice = MAX(High,5)[0]+(1*TickSize);

      entryOrderT1 = EnterLongStop(numContractsT1,entryPrice,"LongTgt1" );
      }
      else if (short rules are here)
      {
      entryPrice = MIN(Low,5)[0]-(1*TickSize);

      entryOrderT1 = EnterShortStop(numContractsT1,entryPrice,"ShortTgt 1");
      }

      Comment


        #4
        Hello,

        Looks like you dont have any code to return you to flat position first.

        With EnterLong and EnterShort this was not needed. If you called EnterShort while long it would submit the correct orders to get you back flat and then short in the account.

        This is not the case with the other order types.

        Therefor the order is being ignored since yor already short, thus not reversing.

        Therefor you need to exit the position first to reverse your position.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          That's interesting because I asked that very question yesterday I think it was and was told they work the same way as Enter() and here's the thread, http://www.ninjatrader.com/support/f...ad.php?t=37763

          Comment


            #6
            Hello,

            This is the case in Ryans post as long as the position is not protected by a SetStopLoss and SetProfitTarget. Are you using these, please see below for the rule. If you are using these which I thought you where, then my post is correct. Would need to see full code to know.

            Rule - A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction.
            BrettNinjaTrader Product Management

            Comment


              #7
              no i'm not using setstoploss or setprofittarget

              Comment


                #8
                Would need to have you send your code to support at ninjatrader dot com, reference ths forum post as I'm out of idea's with just the information given.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  Question: I'm long, via EnterLong() and I have a SetProfitTarget() and SetStopLoss() on the position. Now while in the trade I'd like to place a EnterLongStop() order so that if I gain, say, 10 ticks of profit, I want to add to the position, but I'm getting this error. Which of these rules/constraints prevent my EnterLongStop() from being accepted or executed?

                  Comment


                    #10
                    Originally posted by shodson View Post
                    Question: I'm long, via EnterLong() and I have a SetProfitTarget() and SetStopLoss() on the position. Now while in the trade I'd like to place a EnterLongStop() order so that if I gain, say, 10 ticks of profit, I want to add to the position, but I'm getting this error. Which of these rules/constraints prevent my EnterLongStop() from being accepted or executed?
                    Is your EntriesPerDirection set to 1?

                    Comment


                      #11
                      No, it's set to 100, so that's not it.

                      Comment


                        #12
                        Hello shodson,

                        Thank you for your post.

                        Based on your description I do not see a reason for this. You can look for the specific cases of the Internal Order Handling Rules in your strategy: http://ninjatrader.com/support/helpG...d_approach.htm

                        If you would like you can send your Log and Trace files over to platformsupport[at]ninjatrader[dot]com and we can look into the specific scenario that caused this.

                        You can do this by going to the Control Center-> Help-> Mail to Platform Support.

                        Please reference this thread in the e-mail: http://ninjatrader.com/support/forum/showthread.php?t=37827"http://ninjatrader.com/support/forum/showthread.php?t=37827"

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        630 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
                        566 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