Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetTrailStop - params and info request

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

    SetTrailStop - params and info request

    i am setting
    protectedoverridevoid Initialize()
    {
    if (TrailValue>0)
    {
    SetTrailStop(
    "EMASMA",CalculationMode.Ticks,TrailStop,true);
    }
    }

    I am reading it that the above value "trailStop" if set to 4 would set the initial stop distance 4 ticks from the market entry for "EMASMA"?

    How can i set the trailing frequecny to say 2 ticks?
    Is this going to involve using ATM?


    #2
    tomleeson,

    You cannot set the frequency to two ticks. If you want the granularity of controlling your stops on every single move you should program the logic with the use of ExitLongStop() instead.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      How would you preset a trailing stop to move its minimum and what is that minimum?
      I dont need too much granularity - it jsut doesnt seem to move in at all

      Comment


        #4
        You can't. It moves 1 tick for every tick up in price. You can only control the initial distance with the SetTrailStop() method.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          i am assuming that applies in any direction - long or short
          thanks once again Josh!

          Comment


            #6
            That is correct. If it is a short position it will be the opposite.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

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