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 Balage0922, Today, 07:38 AM
          0 responses
          3 views
          0 likes
          Last Post Balage0922  
          Started by JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          19 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          6 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Working...
          X