Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market if touched order stay alive

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

    Market if touched order stay alive

    Hi,

    I have created a strategy using strategy builder that sets a 'Sell At Market If Touched' order at a certain number of ticks below the previous bars low. If the price doesn't reach that price until some point one or more bars into the future then the order is not triggered. I might have read somewhere that MIT orders generated in the strategy builder only work for the bar in which they were generated. Can someone confirm if this is true, and if so, is there a way to make the order remain in place until either hit at a later point, or the position is closed by some other means?

    Thank you in advance!

    ps, I had to create a new profile to post as the password reset tool was not working.


    #2
    Hello AussieKev,

    Thanks for your post and re-welcome to the NinjaTrader forums!

    Correct MIT orders will be automatically canceled if not filled on the same bar.

    In order to provide you with the best answer, which specific Strategy builder order are you using (show the specific language in the order management folder)? (Entry or Exit)?

    Comment


      #3
      Please see photos and accompanying text. Thank you!

      Comment


        #4
        Hello AussieKev,

        Thanks for your reply.

        What you would need to do for an exit order is to create a double-type variable that you store the exit price in when the condition is true. In another set, you would have a condition to check if the market position is short and the action then to submit the exit order with the saved price. In addition, depending on how you want this to work, you may need to use a bool variable to block the existing code from changing the price once the market position is short.

        Here is a link to the help guide on how to check for the market position: https://ninjatrader.com/support/help...ionComparisons

        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