Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

internal order handling rule managed approach

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

    internal order handling rule managed approach

    Hello,
    I do not understand that rule. I have a long position opened and want to change the setstoploss order so then I get this error. Maybe there is a missunderstanding from my side ?
    The setstopplos is initial set in State.Configure and it will be changed in OnBarUpdate ? What to do to find the real reason for that?
    thx
    regards
    Attached Files

    #2
    the event was 09.04.2021 03:21:04

    and it happens once a day ,in the most cases it works ...
    Last edited by hansg1; 04-09-2021, 01:45 AM.

    Comment


      #3
      Hello hansg1,

      Thank you for your post.

      In the image you shared, 'active' means that the order is not filled yet or canceled.

      As stated in the Tips section of the SetStopLoss help guide documentation, y​​​​​ou may call the SetStopLoss() method from within the strategy OnBarUpdate() method should you wish to dynamically change the stop loss price while in an open position.

      Should you call this method to dynamically change the stop loss price in the strategy OnBarUpdate() method, you should always reset the stop loss price / offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your stop loss order on your next open position

      See the example script in the help guide documentation below for an example of modifying the price of stop loss and profit target orders.
      SamplePriceModification - https://ninjatrader.com/support/help...of_stop_lo.htm

      Also, see the Notes and Tips sections of this help guide documentation regarding SetStopLoss() - https://ninjatrader.com/support/help...etstoploss.htm

      Let us know if we may assist further.
      <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


        #4
        Hi Brandon,
        thx for your reply
        could you have a look please in the grid?
        I do not understand what happens before the event

        Strategy 'EMa101b1/226153922': An Set() method to submit an exit order at '09.04.2021 03:21:04' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.

        the execution happens in the chart above , but why is the "ignored" after that. As I said the logic is working in most cases. So it is not a systematical error.
        There are some orders bevore "ignored".Could you please explain? Thx
        regards

        Click image for larger version

Name:	grid1.PNG
Views:	243
Size:	78.6 KB
ID:	1150829

        Comment


          #5
          Hello hansg1,

          Thank you for your note.

          This error message means that something in your script is violating one of the Set() method Internal Order Handling rules located in the Managed Approach help guide page.

          You would need to debug your script and compare your strategy's logic to the Internal Order Handling rules to determine where in your script the error is occurring.

          See this help guide link regarding the Managed Approach Internal Order Handling rules - https://ninjatrader.com/support/help...antedPositions

          Below is a link to a forum post that demonstrates using prints to understand the behavior of a strategy.
          https://ninjatrader.com/support/foru...121#post791121

          Let us know if we may assist further.
          <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

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X