Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitShortStopMarket disappears

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

    ExitShortStopMarket disappears

    Hi,

    When I set up an ExitShortStopMarket and the market reaches such a price, but at that same time a new bar starts, the ExitShortStopMarket disappears.

    The problem is that it should have exited from the market at such a price but it didn't because the event of a new bar has raised I suppose.

    1. Is there a way to fix that?
    2. Is there a way to check if an ExitStop is in place?

    I am using Strategy Builders, not coding yet.

    Thank you in advance.

    Regards,
    Jose​

    #2
    Hello Jose,

    Thanks for your post.

    From the Managed Approach help guide: "By default, orders submitted via Entry() and Exit() methods automatically cancel at the end of a bar if not re-submitted"

    Managed Approach: https://ninjatrader.com/support/help...d_approach.htm

    Instead, you would need to use Exit methods such as ExitShortStopMarket() with the isLiveUntilCanceled property set to true and ensure that your logic is only calling the Exit methods once so that the order does not reset. When the isLiveUntilCanceled property is set to true the order will NOT expire at the end of a bar but instead remain live until the CancelOrder() method is called or its time in force is reached.

    Note that you would have to unlock the code from the Strategy Builder by clicking the Unlock Code button and manually program your strategy to use the isLiveUntilCanceled property for Exit methods.

    Please refer to the help guide link below regarding Exit methods and the isLiveUntilCanceled property.

    ExitShortStopMarket(): https://ninjatrader.com/support/help...stopmarket.htm

    And, see the attached example script demonstrating the use of the isliveUntilCanceled property.​
    Attached Files
    <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, Yesterday, 05:17 AM
    0 responses
    58 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X