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 muratb35, Today, 03:36 AM
            0 responses
            3 views
            0 likes
            Last Post muratb35  
            Started by fernlicht, Today, 02:16 AM
            1 response
            8 views
            0 likes
            Last Post NT-Roland  
            Started by fernlicht, 04-12-2021, 06:01 PM
            1 response
            28 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by memonolog, Today, 02:10 AM
            2 responses
            5 views
            0 likes
            Last Post NT-Roland  
            Started by orenytz, Today, 12:25 AM
            0 responses
            8 views
            0 likes
            Last Post orenytz
            by orenytz
             
            Working...
            X