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

Reversing a position after stoploss triggered

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

    #31
    The order would not be submitted if you had a separate SetStopLoss() order. Is this what you mean by stops triggered?

    Using SetStopLoss with that order causes the entry order to be ignored based on internal order handling rules. This should be noted in TraceOrders output.

    Methods that generate orders to enter a position will be ignored if:
    A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
    A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
    Ryan M.NinjaTrader Customer Service

    Comment


      #32
      I do have separate SetStopLoss orders. Is there a workaround using the wizard?

      Comment


        #33
        If you have a working StopLoss and want to reverse, just do so with Market Orders, they would not trigger the order handling rules.
        BertrandNinjaTrader Customer Service

        Comment


          #34
          Can you give me the code snipet to work with. I am long and I have a SetStopLoss order with the original order. Prices hit my stoploss, I want to reverse and go short with a new profit target and a new stop loss target.

          Comment


            #35
            Please re-read the thread you're participating in. This is the same thing the original poster wanted.

            Your entry orders will reverse positions, not profit target and stop loss orders.
            Ryan M.NinjaTrader Customer Service

            Comment


              #36
              The solution offered in this thread is the one I tried to implement and your Internals rules did not let me do. I have read the thread again, if you have the answer and want to offer it, please do.

              Comment


                #37
                Don't use SetStopLoss and SetProfitTarget statements. You then won't run into internal order handling rules rules.
                Attached Files
                Last edited by NinjaTrader_RyanM1; 12-01-2010, 10:02 AM.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #38
                  Looking at your attachment, does it mean that if I am using the wizard there is no way to do a long or short reversal and still have a Profit and Stop Target in my strategy? I noticed that you left the stops and targets box blank..

                  Comment


                    #39
                    Correct George, unless you issue a Mar****rder for the reverse, those would not be caught by the order handling rules.
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by AaronKTradingForum, Today, 03:44 PM
                    1 response
                    2 views
                    0 likes
                    Last Post AaronKTradingForum  
                    Started by Felix Reichert, 04-26-2024, 02:12 PM
                    11 responses
                    72 views
                    0 likes
                    Last Post Felix Reichert  
                    Started by junkone, 04-28-2024, 02:19 PM
                    7 responses
                    82 views
                    1 like
                    Last Post junkone
                    by junkone
                     
                    Started by pechtri, 06-22-2023, 02:31 AM
                    11 responses
                    136 views
                    0 likes
                    Last Post Nyman
                    by Nyman
                     
                    Started by ageeholdings, 05-01-2024, 05:22 AM
                    4 responses
                    27 views
                    0 likes
                    Last Post ageeholdings  
                    Working...
                    X