Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 DawnTreader, 05-08-2024, 05:58 PM
            7 responses
            26 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by sgordet, Today, 05:24 AM
            0 responses
            7 views
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by royhagerman, Today, 04:30 AM
            0 responses
            1 view
            0 likes
            Last Post royhagerman  
            Started by haas88, 03-21-2024, 02:22 AM
            18 responses
            211 views
            0 likes
            Last Post haas88
            by haas88
             
            Started by Board game geek, Today, 02:20 AM
            0 responses
            11 views
            0 likes
            Last Post Board game geek  
            Working...
            X