Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dynamic Stop Loss

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

    Dynamic Stop Loss

    Hi i am writing a code in nijatrader when I setup the stop loss I can only have a fixed stop loss price for example 10 ticks. However, what I want my stop loss to be is 2 candles prior low. instead of a fixed stop loss.

    for example. Ninjatrade enters a Long trade the stop loss should be 2 candles prior low. this way the stop loss can be 5 ticks or 15 ticks. it always changing.

    Does anyone know how to write that kind of stop loss code in ninjatrader . thank you for your time

    #2
    Hi,

    Try the last listing on the resources page:


    TJ

    Comment


      #3
      wallstreetking, after reviewing the last listing on the reference sample page (Modifying the price of stop loss and profit target orders), please let us know if you have any other questions.
      AustinNinjaTrader Customer Service

      Comment


        #4
        No that is not what looking for

        I would like to check the historic success rate to see if the strategy is profitable. the one that trader jon showed me is only for real time.

        Comment


          #5
          wallstreetking, I'm not sure where you saw its real-time only, but the strategy is entirely backtestable. I just double checked the code to be sure and there is nothing in there that skips over historical data.
          AustinNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          110 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          156 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          75 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X