Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitLongLimit Help

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

    ExitLongLimit Help

    if ((Position.MarketPosition == MarketPosition.Long)
    && (LongTrades == true)



    && (Close[0] < Open[0]))

    {

    // ExitLongLimit(Convert.ToInt32(Position.Quantity, ATSCycleZonesExit25.ZoneH1L[0]), @"TargetLH1Z", @"Long H1Z");

    // ExitLongLimit(0, false, Position.Quantity, ATSCycleZonesExit25.ZoneH1L[0], @"TargetLH1Z", @"Long H1Z");

    ExitLongMIT(Position.Quantity, ATSCycleZonesExit25.ZoneH1L[0], @"TargetLH1Z", @"Long H1Z");

    }

    I have tried all 3 of the exit methods without success, strategy still works but not this exit met

    Error in the about order ignored and please search for Internal order handling rules...

    I have search and read many forum post and help guide but do not know what is the issue

    Thanks​

    #2
    Yes weird i m having same error on backtest, its trying to place a stop but price moved so rapidly that it couldnt put the stop and it says order has been ignored. I tried a "try" 'Catch" block to print the error and Close the position but it does not seem to respond to it. using the ExitLongMIT() I know especially with NQ these can happen but how to catch it and close open position?? Please moderators check this out.

    Comment


      #3
      Are you trading OnBarClose or ticks or OnPriceChange ?

      Comment


        #4
        Hello DTSSTS,

        Thanks for your notes.

        "Error in the about order ignored and please search for Internal order handling rules..."

        Are you using Set methods (such as SetStopLoss()) and Exit methods in the script?

        From the Internal Order Handling Rules help guide:

        "Methods that generate orders to exit a position will be ignored if:
        • A position is open 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
        • A position is open and an order submitted by a set method (SetStopLoss() for example) is active"

        See the 'Internal Order Handling Rules' section of this help guide page for more information: https://ninjatrader.com/support/help...d_approach.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          • A position is open and an order submitted by a set method (SetStopLoss() for example) is active"
          ​Trying to enter an Exit Long Limit when the above is true then I guess is my issue
          Thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          43 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          21 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          30 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          50 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Working...
          X