Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get the stradegy builder to submit 2 profit targets?

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

    How to get the stradegy builder to submit 2 profit targets?

    Having a hard time getting the strategy builder to submit 2 profit targets. It will only fire the 10 tick profit targets. I can't get it to submit the other 15tick profit targets. I set it up just like this & is was working as expecting with 2 profit targets of 10 & 15 & a 15 tick stop loss. But then it stopped working on me & I havn't been able get it to work again. Can you pleae let me know what I need to do to get to take profits?
    Attached Files

    #2
    Hello dtaylor,

    Thanks for your post.

    You might need to adjust the Entries Per Direction property to 2 when enabling your NinjaScript strategy.

    This would allow the strategy to place 2 orders in the same direction.

    See the attached example script that demonstrates submitting two entry orders with a profit target and stop loss attached to each entry order.

    And, see the help guide documentation below for more information about Strategy Builder conditions and actions.
    Conditions: https://ninjatrader.com/support/help...on_builder.htm
    Actions: https://ninjatrader.com/support/help...t8/actions.htm

    Let me know if I may assist further.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you!

      Comment


        #4
        Hi Ninja Support team, I have a question around the same topic. As per my strategy, i take an entry(lets call it as Trade1[T1]), either short or Long (based on certain criteria) and if it hits SL(based on certain criteria), i will take T2(based on certain criteria).
        So, basically T2 is taken only when T1 hits SL. Otherwise, there will be no T2.

        In this strategy, i want to set a different Profit Target for T1 and different profit target for T2. How can i do this using "Stops and Targets" section in the strategy builder. I know how to set a PT for all trades but how can i set it for each individual trade that get's executed.
        Please note, my strategy runs on bar close. So entry is on bar close and SL is also on bar close but the PT can be anytime based on the price change, as soon as it hits PT - it has to close the trade.

        Comment


          #5
          Did you try EntriesPerDirection =2 i, in the code

          Comment


            #6
            Originally posted by Emma1 View Post
            Did you try EntriesPerDirection =2 i, in the code
            Hello, In my case, T1 can be long and T2 can be short or viceversa.
            Also, at single point, i will only have one trade at a time. So does your suggestion still apply for my case?

            Comment


              #7
              if single entry , T1 and T2 can be achieved ordinarily one or the other but there maybe an instance in which both occur probably but i am not sure , check OCO. ( Try this on You tube:

              How to Trade Hedged Strategies on the NinjaTrader Platform - Zoom in Profit Algo System​)

              Comment


                #8
                I am aware of single entry as well as multiple entries. T1 and T2 can be achieved ordinarily, one or the other but there maybe an instance in which both can occur probably but i am not sure .
                Try this on You: (
                How to Trade Hedged Strategies on the NinjaTrader Platform - Zoom in Profit Algo System​).

                Comment


                  #9
                  Emma1, this is not applicable to me.

                  Comment


                    #10
                    Originally posted by NinjaTrader_BrandonH View Post
                    Hello dtaylor,

                    Thanks for your post.

                    You might need to adjust the Entries Per Direction property to 2 when enabling your NinjaScript strategy.

                    This would allow the strategy to place 2 orders in the same direction.

                    See the attached example script that demonstrates submitting two entry orders with a profit target and stop loss attached to each entry order.

                    And, see the help guide documentation below for more information about Strategy Builder conditions and actions.
                    Conditions: https://ninjatrader.com/support/help...on_builder.htm
                    Actions: https://ninjatrader.com/support/help...t8/actions.htm

                    Let me know if I may assist further.
                    Hi Ninja Support team, I have a question around the same topic. As per my strategy, i take an entry(lets call it as Trade1[T1]), either short or Long (based on certain criteria) and if it hits SL(based on certain criteria), i will take T2(based on certain criteria).
                    So, basically T2 is taken only when T1 hits SL. Otherwise, there will be no T2. Also, note that , at a single point of time - there will not be 2 trades. Only 1 trade will be ON.

                    In this strategy, i want to set a different Profit Target for T1 and different profit target for T2(if incase T2 gets triggered). How can i do this using "Stops and Targets" section in the strategy builder. I know how to set a PT for all trades but how can i set it for each individual trade that get's executed.
                    Please note, my strategy runs on bar close. So entry is on bar close and SL is also on bar close but the PT will be set as soon as the trade is entered and as soon as it hits PT - it has to close the trade. In here, i want to set PT of 10 pts for T1 and if incase T2 executed, i want to set 15 pts as PT for T2. How can i do this?

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    69 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    42 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    24 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    27 views
                    0 likes
                    Last Post TheRealMorford  
                    Started by Mindset, 02-28-2026, 06:16 AM
                    0 responses
                    54 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X