Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing Stop Strategy

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

    Trailing Stop Strategy

    I’m running a strategy with a trailing stop of (for example) 20 ticks on my first contract. My strategy also sizes up, so at a certain point I have 2 contracts, but what I want to do is to tighten my 2 trailing stops so that the cash value of any loss would not exceed the original 20 ticks?
    In other words, instead of a trailing stop using points, what I am trying to achieve is a trailing stop using a total unrealized cash amount the strategy can lose regardless if I have more than 1 contract.
    Any thoughts would be gratefully received.
    Thanks
    Last edited by John833; 09-25-2008, 06:16 AM.

    #2
    Hello,

    You will need to find the value of the 20 ticks in currency then you can use SetTrailStop(...some value here...). This link will help:

    DenNinjaTrader Customer Service

    Comment


      #3
      Thanks Ben for your reply

      I’m looking at the help guide, but I'm still struggling....
      So if I want to have a trailing stop in currency, which will exit positions (regardless of size of position) at a specified unrealized loss,
      The help guide has:

      SetTrailStop(double currency)

      So would the code look something like this?

      protected override void Initialize()
      {
      // Sets a trail stop of $1000 regardless of position size
      SetTrailStop(double.1000);
      }

      I don’t seem to be able to get this to work…. Do you have any idea what I am doing wrong?
      Last edited by John833; 09-25-2008, 08:59 AM.

      Comment


        #4
        Hello,

        Use something like this:

        SetTrailStop(1000);
        DenNinjaTrader Customer Service

        Comment


          #5
          thanks Ben for your help, I'll try this out....

          Regards

          John

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          332 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X