Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

3x EnterShortStop() - only first submits

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

    3x EnterShortStop() - only first submits

    What can be cause of not submit second and third order?

    Code:
    entryOrderShort1 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort1");
    entryOrderShort2 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort2");
    entryOrderShort3 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort3");
    In logs, there are only records for MyEntryShort1 (Pending ->Accepted ->Working). For other orders there is nothing. Strange.

    #2
    As usual - unwanted Internal Order Handling Rules :/

    Comment


      #3
      Originally posted by Argo1 View Post
      What can be cause of not submit second and third order?

      Code:
      entryOrderShort1 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort1");
      entryOrderShort2 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort2");
      entryOrderShort3 = EnterShortStop(0, true, varQuantity, sigPrice, "MyEntryShort3");
      In logs, there are only records for MyEntryShort1 (Pending ->Accepted ->Working). For other orders there is nothing. Strange.
      Make sure your EntriesPerDirection is at least 3

      or entry handling = "UniqueEntries"

      Comment


        #4
        I have enough values. The problem is NT limit called: "Internal Order Handling Rules that Reduce Unwanted Positions"
        - it reduces possibility to create my technically tradable strategy.

        Comment


          #5
          The rules will never be hit simply from having three short orders. It is in conjunction with some other part of your strategy that the rules are hit if they are.

          You can view the various rules here: http://www.ninjatrader-support.com/H...tml?Overview36
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            I know this. I must switch to another strategy creation tool because of this limits - I can't create even my first strategy based on pending orders with custom SL, TP, TS.

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              The rules will never be hit simply from having three short orders. It is in conjunction with some other part of your strategy that the rules are hit if they are.

              You can view the various rules here: http://www.ninjatrader-support.com/H...tml?Overview36
              I agree with Argo: this order handling rules even prohibit basic entry strategies as breakout from a low volatility range with a double-sided stop order.
              I know that it will be possible with v.7 to submit orders directly. But IMHO the more efficient way would have been to simply abandon this limitating rules.
              This, together with the missing possibility of executing portfolio backtests, are IMHO the two big limitations of NT, that I like very much in other respects.

              Comment


                #8
                There are many reasons the rules have to be in place. You cannot submit simultaneous working orders in opposite directions of the market. If you want this behavior, just submit one order. When price moves closer to the opposite's direction, cancel the first and submit the second. If it reverses back up, cancel the 2nd and resubmit the first.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Josh, I don't want to have hedging possibility and this is not case in my strategy. I even don't like hedging/not fifo

                  Comment


                    #10
                    Argo1,

                    There are other rules not necessarily associated with hedging that are also required. Unfortunately I could not tell you which one you hit without dissecting your code line by line.
                    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
                    647 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