Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set ProfitTarget and Stoploss as (open price+x) and (open price -x)

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

    How to set ProfitTarget and Stoploss as (open price+x) and (open price -x)

    Hi,
    I have created my first strategy and see some results, but I have not set the ProfitTarget and Stoploss correctly so I get skewed figures.

    How do I set the ProfitTarget to (opening price + 37 points) and StopLoss to (opening price - 10 points)?

    Thanks,

    #2
    In the Initialize() method please use SetProfitTarget(CalculationMode.Ticks, 37) and SetStopLoss(CalculationMode.Ticks, 10). Please see these articles: http://www.ninjatrader-support.com/H...fitTarget.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      In the Initialize() method please use SetProfitTarget(CalculationMode.Ticks, 37) and SetStopLoss(CalculationMode.Ticks, 10). Please see these articles: http://www.ninjatrader-support.com/H...fitTarget.html
      http://www.ninjatrader-support.com/H...tStopLoss.html
      Hi Josh,

      I have tried this before, but it does not have the desired effect. The entries are being opened and closed the same second. If I use percentage, it does resemble what I want, but not with points.

      So for the DJIA I am able to say ProfitTarget is .5% and TrailingStopLoss .17 and that works! So for a position opened at 7450, I would get a profittarget of 7487 and trailing stoploss of 7438.

      Want I want is if I buy the DJIA at 7450, then I want the ProfitTarget to be 7487 and the trailing stoploss to be 7440.

      I hope I am making some sense :-)

      Regards

      Comment


        #4
        Ticks are not points depending on your instrument. You need to do the math to figure out what would equate to the points.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Ticks are not points depending on your instrument. You need to do the math to figure out what would equate to the points.
          Thanks! I got the point.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          115 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          161 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          83 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          127 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          87 views
          0 likes
          Last Post PaulMohn  
          Working...
          X