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 Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          834 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,290 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          10 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          62 views
          0 likes
          Last Post halgo_boulder  
          Started by Option Whisperer, Today, 09:55 AM
          0 responses
          8 views
          0 likes
          Last Post Option Whisperer  
          Working...
          X