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 Max238, Today, 01:28 AM
          1 response
          21 views
          0 likes
          Last Post CactusMan  
          Started by giulyko00, Yesterday, 12:03 PM
          2 responses
          10 views
          0 likes
          Last Post giulyko00  
          Started by r68cervera, Today, 05:29 AM
          0 responses
          4 views
          0 likes
          Last Post r68cervera  
          Started by geddyisodin, Today, 05:20 AM
          0 responses
          6 views
          0 likes
          Last Post geddyisodin  
          Started by JonesJoker, 04-22-2024, 12:23 PM
          6 responses
          37 views
          0 likes
          Last Post JonesJoker  
          Working...
          X