Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Targets

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

    Multiple Targets

    I am trying to exit half of my positions at 4T pofit and let the other half of my positions ride up to 8T profit. At the same time I would like to place a Breakeven once 4T is touched on all my positions. Is there a way to code this? I have been able to code the Breakeven portion, but the multiple tick targets is a challange for me. Can you help with this?

    #2
    lvaduva, this is possible to do in NinjaScript if you scale in first so you can scale out later with your exits, here's a sample to get you started coding this - http://www.ninjatrader-support2.com/...ead.php?t=3751

    Comment


      #3
      That is a great start. Can you help with the syntax, for a EnterLongLimit()
      Currently I have:

      EnterLongLimit(DefaultQuantity, Bollinger(Median, 1, 21).Upper[0] + 3 * TickSize, "");

      From you example you use EnterLong("Long1a") how do I change this to EnterLongLimit syntax that I have above?

      Comment


        #4
        The signal name would be added as the last parameter, the string you've left empty -

        Code:
        EnterLongLimit(DefaultQuantity, Bollinger(Median, 1, 21).Upper[0] + 3 * TickSize, "Long1a");

        Comment


          #5
          Okay, but I use DefaultQuantity throughout my code and I type that in at 4, and I set my Long1a to 2. Will there be a conflict?

          Comment


            #6
            Then please use to set order size 'by Strategy' as you start this up, this would then work properly with the hard coded sizes you have now.

            Comment


              #7
              Thank you. I will try.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              653 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X