Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Different Target & Stops

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

    Different Target & Stops

    Suppose I wanted to define a TARGET on a long trade activated by CONDITION A and a different target if the long trade was activated by CONDITION B.

    How do I differentiate which target (or stop) to have NJ use?

    #2
    Hi CRCatNinja, you would then simply adjust your Stop / Target values depending on which entry condition got you into the trade. Here's the link to a reference sample explaining how to achieve this - http://www.ninjatrader-support2.com/...ead.php?t=3222

    Comment


      #3
      Can you set up different profit targets like this?

      SetProfitTarget("Long 1a", CalculationMode.Ticks, 10);
      SetProfitTarget("Long 1b", CalculationMode.Ticks, 20);

      Comment


        #4
        Hi edgeliner, yes this should work.

        Comment


          #5
          Thank you all!!!

          Comment


            #6
            Is there a correct way to code the following?

            if ((Position.MarketPosition > Position.AvgPrice + 5 * TickSize)

            Then "Do something"

            Thanks!

            Comment


              #7
              Hi, not sure what you are trying to code - Position.MarketPosition will return Long, Short or Flat depending on the current positioning - http://www.ninjatrader-support.com/H...tPosition.html

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cmoran13, Yesterday, 01:02 PM
              0 responses
              29 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              21 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              160 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              95 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              148 views
              2 likes
              Last Post CaptainJack  
              Working...
              X