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 Rapine Heihei, Today, 08:19 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 08:25 PM
            0 responses
            6 views
            0 likes
            Last Post Rapine Heihei  
            Started by f.saeidi, Today, 08:01 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 07:51 PM
            0 responses
            8 views
            0 likes
            Last Post Rapine Heihei  
            Started by frslvr, 04-11-2024, 07:26 AM
            5 responses
            98 views
            1 like
            Last Post caryc123  
            Working...
            X