Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error message on entry ()

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

    error message on entry ()

    i recieved an error message this morning. i'm not sure what it means.

    is it okay to have short and longs in the same strategy?
    Attached Files

    #2
    Hello SteveReiza,

    Thank you for your inquiry.

    From the Managed Approach help guide page:

    Methods that generate orders to enter a position will be ignored if:
    • A position is open and an order submitted by a non market order 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
    • A position is open and two or more Entry methods to reverse the position are entered together. In this case the second Entry order will be ignored.
    • 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

    You should also review the scenarios listed above and compare them to your script to ensure that the strategy is not falling into one of these scenarios.

    Managed Approach Internal Order Handling Rules: https://ninjatrader.com/support/helpGuides/nt8/managed_approach.htm

    It is okay to have a strategy use both EnterLong() and EnterShort(), if this is what you mean. The way you use them must follow the internal order handling rules.

    Please let me know if you have any other questions. ​

    Comment


      #3
      thanks for the reply. i do have all my entries in the strategy as enter long limit. then i have the limit price as the ask. do you think that is what' s causing it? putting the ask +1 tick will that fix it?

      Comment


        #4
        Hello,

        Without seeing the entirety of the script I would not be able to say for certain what exactly in your code is against the Managed Approach Internal Order Handling Rules. This error message would only be caused if your strategy is violating one of the rules mentioned in my previous post.

        I recommend debugging the script possibly using prints and enabling TraceOrders. TraceOrders will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true. You can alsoadd prints to the script that print out the Signal Name of the Entry orders to ensure the Signal Names are unique.

        Comment


          #5
          thanks for the reply. i figured it out. i had to offset the bid and ask by a tick.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          87 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          118 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X