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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          57 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X