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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              64 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              35 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              59 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              62 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              51 views
              0 likes
              Last Post CarlTrading  
              Working...
              X