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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          54 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          130 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          72 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X