Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting up Price Targets

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

    Setting up Price Targets

    Hello,

    Interested in setting up some price targets for entry and exit. Is there a way to do this with the strategy builder? I cannot figure it out.

    Thanks

    #2
    Not sure I follow. Please make sure you read the relevant sections on the strategy wizard on the help guide. There also is a video tutorial.

    Comment


      #3
      Example, when a price hit's a certain price I would like to go short/long. I cannot figure out how to use the current price as the trigger for making trades. I have looked in the help section as well with no avail. Thanks

      Comment


        #4
        See here on how to set up a close price comparison:


        See here how to compare to an absolute price value:


        Then you need to trigger an action:

        Comment


          #5
          Thanks. A specific example would be when the price closes above 2.0000 or when the prices closes below 1.5000.

          Rather than just a higher or lower close, specific price points.

          Comment


            #6
            See my 2nd link below for how to apply specific prices.

            Comment


              #7
              On the left hand side you choose the Close series then in the middle choose greater than then on the right hand side choose Numeric value and type in 2.000 or whatever you want.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Rather than start a new thread on this topic, I thought I would post my question here.

                I'm trading multiple lots in a mini forex acct and while my strategy works well, I'd like to try and 'bank' smaller moves, but still maintain the overall position.

                I'm using the following code, but it doesn't seem to have any effect on the strategy results (takeProfit is an integer of the profit target in pips i.e. 25):
                Code:
                                // Condition set 9
                                if (Position.MarketPosition == MarketPosition.Short
                                    && Position.GetProfitLoss(Close[0], PerformanceUnit.Points) == takeProfit)
                                {
                                    ExitShort("Take Profit", "");
                                    EnterShort(DefaultQuantity, "Re-enter short");
                                }
                    
                                // Condition set 10
                                if (Position.MarketPosition == MarketPosition.Long
                                    && Position.GetProfitLoss(Close[0], PerformanceUnit.Points) == takeProfit)
                                {
                                    ExitLong("Take Profit", "");
                                    EnterLong(DefaultQuantity, "Re-enter long");
                                }
                Any ideas?

                Comment


                  #9
                  Guessing: could be a rounding issue on
                  Code:
                  Position.GetProfitLoss(Close[0], PerformanceUnit.Points) == takeProfit
                  I suggest adding Print() statement to see if your conditions are met as expected. If that works you could use TraceOrders to see what happens to your orders.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  656 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  371 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
                  579 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X