Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit and Reverse in wizard

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

    Exit and Reverse in wizard

    How can I exit and reverse a position in wizard?
    My strategy meets condition and exits long /short.
    Then I want to follow the market right away and take a short when exiting long and a long when exiting a short. Always 1 contract in market per direction.
    I tried under do the following under my exits to place entries but thousands of trades came up a big mess.

    Then I would like new criteria for the second exits and new profit targets and stops (if possible otherwise willuse the same as first conditions)

    Thanx

    #2
    Do not call an Exit(), just call Enter() right off the bat. It will auto close the prior position and then get you into the new direction.

    If you want different exit conditions you should be using signal names for your entries. Then you can tie specific exit conditions to specific entry signal names.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Lost with reversing

      I am lost. Pls take a look. Instead of exiting long I just entered short and vice versa but no desired result. Pls take a look and give me more exact steps or modify in my file. After exit I just need reverse with new conditions.

      Then how do marks work. Say I want to mark an entry. How do I place a mark so I can compare it to something later?

      Where I put the signal names and how do I tie them. I haven't figured out how I find them again to compare.

      Pls be more elaborate cause some things may seem obvious to you but I am newbie.....

      Originally posted by NinjaTrader_Josh View Post
      Do not call an Exit(), just call Enter() right off the bat. It will auto close the prior position and then get you into the new direction.

      If you want different exit conditions you should be using signal names for your entries. Then you can tie specific exit conditions to specific entry signal names.
      Attached Files

      Comment


        #4
        Not following you. If you already have a long position and you called EnterShort() it will automatically close your long position and then get you your desired short position. There is no need to call ExitLong() and then EnterShort() right after each other.

        You need to remember the signal names. Your first signal name for long could be "longA". Your reversal could be "longB". You have to know what you are doing and tie them to the fromSignalName on the exits and such accordingly.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Reverse, follow gap, user variables

          Pls take a look. made 2 version s with 1L,1S and 2L,2S for my 2 different entries and used them in same profit target and stop (1L,1S,2L,2S) or with different PT and SL (1L,1S) and (2L,2S) yet results are messed up.

          I want to enter in direction of exit or stop loss (reverse) and use different criteria for exit. Pls specify. If you cant follow my wizard it means I have completely messed it up, so could you give me the exact steps or edit mine and repost?

          What about offsets, do they work with negative values as well? meaning direction of offset, so I could use for approaching fill of gap (not going the other way offseting as well)?

          What about not fading and when open is > or < close by x% b(say 2%) to take opposite direction (follow the gap, not fade it). How can I put that in wizard?

          What are the input values for user variables? =1 meaning marking the above condition or something else? Give me example cause in tutorial it is not elaborate. I want to get the broader picture of user variables. How can one place an indicator there? or price?


          thanx




          Originally posted by NinjaTrader_Josh View Post
          Not following you. If you already have a long position and you called EnterShort() it will automatically close your long position and then get you your desired short position. There is no need to call ExitLong() and then EnterShort() right after each other.

          You need to remember the signal names. Your first signal name for long could be "longA". Your reversal could be "longB". You have to know what you are doing and tie them to the fromSignalName on the exits and such accordingly.
          Attached Files

          Comment


            #6
            You cannot do comma listing. You need one per signal name.

            SetStopLoss("1L,1S", CalculationMode.Percent, SL, false) needs to be this:
            Code:
            SetStopLoss("1L", CalculationMode.Percent, SL, false);
            SetStopLoss("1S", CalculationMode.Percent, SL, false);
            This applies for all 4 of the ones you have.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X