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

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)?
    Paul H.NinjaTrader Customer Service

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by inanazsocial, Today, 01:15 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        6 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        1 view
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        22 views
        0 likes
        Last Post trilliantrader  
        Started by Davidtowleii, Today, 12:15 AM
        0 responses
        3 views
        0 likes
        Last Post Davidtowleii  
        Working...
        X