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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            89 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X