Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Incorrect StopLoss being triggered.

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

    Incorrect StopLoss being triggered.

    I created a strategy using the strategy wizard and it seems to Exit via a StopLoss at the exact same time and same price as it enters.

    The entry times and prices are all correct.

    My stop loss code when I unlock it is:
    SetStopLoss("", CalculationMode.Price,0.15, false);

    I checked if the price actually moved .15 intrabar and it didn't.

    Am I doing something wrong?

    Thanks

    #2
    Using CalculationMode.Price is incorrect for a 0.15 move. Price mode means actual price. Your instrument at 0.15. If you wanted 15 ticks you want to use CalculationMode.Ticks and then submit 15 as the number not 0.15.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Got It.

      That explains it.

      Thanks a lot.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Klaus Hengher, Yesterday, 03:13 AM
      2 responses
      15 views
      0 likes
      Last Post Klaus Hengher  
      Started by Sebastian - TwinPeaks, Yesterday, 01:31 PM
      2 responses
      12 views
      0 likes
      Last Post Sebastian - TwinPeaks  
      Started by wbennettjr, 07-15-2017, 05:07 PM
      16 responses
      2,527 views
      1 like
      Last Post eladlevi  
      Started by Human#102, Yesterday, 09:54 AM
      2 responses
      7 views
      0 likes
      Last Post Human#102  
      Started by Patlpp, 08-16-2021, 03:10 PM
      10 responses
      498 views
      0 likes
      Last Post Joerg
      by Joerg
       
      Working...
      X