Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by reynoldsn, Today, 02:34 PM
    0 responses
    5 views
    0 likes
    Last Post reynoldsn  
    Started by nightstalker, Today, 02:05 PM
    0 responses
    8 views
    0 likes
    Last Post nightstalker  
    Started by llanqui, Yesterday, 09:59 AM
    8 responses
    28 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by quicksandatl, Today, 01:39 PM
    1 response
    5 views
    0 likes
    Last Post quicksandatl  
    Started by md4866, 05-01-2024, 08:15 PM
    2 responses
    18 views
    0 likes
    Last Post md4866
    by md4866
     
    Working...
    X