Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Losses Not Working?

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

    Stop Losses Not Working?

    When I set stop losses for a strategy I am backtesting, for some reason Ninjatrader is not reading them.

    I set 'simulated' to true, set calculation mode as percent and place the percentage I wish to use as a stop loss.

    Is there any sort of default I have to change before Ninjatrader will accept my stop loss inputs?

    Thanks in advance.

    #2
    Hello,

    What is the exact Percent value you are using for your stop? For example, if you are using 5%, you would want to make sure you're using a double value of 0.05 - as opposed to 5.00 which would be 500%.

    If you're sure that is correct, do the stops work if you switch to CalculationMode.Ticks?
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks Matthew.

      I am making sure my percentages are correct.

      I want a 10% stop loss, i.e. 0.1, and my largest loss is coming out as 98%.

      How can I set a 10% stop loss using ticks?

      Thanks.

      Comment


        #4
        You would need to calculate it yourself if you used ticks, however the CalculationMode.Percent should do that for you.

        I was not asking you to use ticks for your strategy per se, just curious if the stop is submitted and executed if you do use ticks.

        I would also suggest enabling the TraceOrders property in your strategy to see if the stops are actually being submitted when you expect:

        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tburg1073, Today, 08:36 AM
        0 responses
        4 views
        0 likes
        Last Post Tburg1073  
        Started by alexstox, 10-16-2018, 03:29 PM
        10 responses
        333 views
        0 likes
        Last Post Tburg1073  
        Started by smartromain, 03-13-2024, 01:42 AM
        6 responses
        98 views
        0 likes
        Last Post smartromain  
        Started by Jonker, 04-27-2024, 01:19 PM
        4 responses
        29 views
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by Yasharandom, Today, 07:45 AM
        0 responses
        5 views
        0 likes
        Last Post Yasharandom  
        Working...
        X