Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit strategy for multiple entries

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

    Exit strategy for multiple entries

    I am developing a strategy for multiple (3) entries and exits. I want my second long entry to exit at the price of my first long entry (plus or minus a few predefined ticks).

    I am using the strategy builder to achieve this and tried using defined variables and settings however it does not seem to work.

    Appreciate your input on how I can achieve this.

    #2
    Hello ahpeak951,

    To do that while using the builder would require that you put your targets in the Sets instead of using the stops and targets page. There is a break even example that shows the type of logic that you would need to do that in the following link. You would have to use variables and then resubmit the target on each bar until it fills.





    Comment


      #3
      Thank you for your reply.

      I checked out your breakeven strategy. Although it helps, it's not exactly what I need.

      Do you have an example of a strategy builder that handles multiple entries and multiple exits?

      So basically, if long, my strategy buys entry1, entry2, entry3 and TP and SL targets change accordingly..

      I developed this already with each entry's TP and SL handled individually.

      However my problem is that i need the TP and SL of each entry dependent on prior entry price.

      Thanks

      Comment


        #4
        Hello ahpeak951,

        I am not aware of any more complex samples, most of the samples that you can find are intended to explain one single concept.

        That break even sample shows all of what is required to manage 1 target with a custom calculated price. That same logic would be needed if you wanted more targets, you would have to replicate that logic a number of times for the number of targets used. The main take away from that sample is how to price an order by using a variable, that is necessary because you can't use price variables in the stops and targets page. The code in the stops and targets page is run once when the strategy starts so you can't calculate prices and supply them to those type of orders.

        Comment


          #5
          NinjaTrader_Jesse

          Thanks for the replies I am now using the above for my trailing stop and it works fine.

          Now for my profit target, I am still using the Stops and Targets page but I am having issues. Should it work or should I develop my own Exit Logic similar to what we did with the stop orders?

          Comment


            #6
            Hello ahpeak951,

            What kind of issue are you having? You can also make a profit target in the same way that you did the stop if you wanted to.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            55 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            132 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            73 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X