• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how use trailing stop at strategy builder

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

    how use trailing stop at strategy builder

    Good afternoon, I would like through the strategy builder to be able to use the trailing stop, I don't know how to use it so that my stop decreases when I have advanced a certain number of ticks? Thanks

    #2
    Hello Dist2020,

    Thank you for your post.

    A basic trail stop may be added in the Strategy Builder on the Stops and Targets screen. It should be noted that this is a very basic trailing stop and will trail by the same number of ticks each time - you cannot reduce the width of the trail stop after it's created.

    The Set methods in the Stops and Targets section of the Strategy Builder only allow for simple stops and targets that cannot be changed dynamically. Programming by hand will offer more flexibility, but you can also create your own logic in Conditions and Actions that controls how you would like to exit.

    We can not offer services to design strategy logic in the support department, but you may conceptualize the following as an example of using Exit orders to mimic Trail stop functionality:
    1. If the strategy is flat, set a bool to controlling your auto trail behaviors to false. Then Enter.
    2. If the strategy is not flat and some condition happens that you would like to trigger your auto trail, set the bool to true.
    3. If the strategy is not flat and the bool is false, place your initial stop loss as an Exit Order.
    4. If the strategy is not flat and the bool is true, modify the Exit Order in association to the current market price.
    More information on using the Strategy Builder can be found below.

    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      What you say is this? when the order is flat

      https://www.screencast.com/t/IXoV3FnFr

      Comment


        #4

        I would like your help please, I just want if it advances 8 ticks my stop decreases to 4

        Comment


          #5
          Hello Dist2020,

          Thank you for your replies.

          I am unable to view your video as the format it is in, Flash, is no longer supported.

          In the case that you want your stop movements to be triggered after the price increases by 8 ticks you will need to use exit orders to simulate stop movements in the builder. I've attached a simple example strategy that allows you to set the frequency with with your "trail stop" updates that should give you a good jumping off point to add your own logic.

          Here is a basic guideline of how to import NinjaScript add-ons in NinjaTrader 8:

          Note — To import NinjaScripts you will need the original .zip file.

          To Import:
          1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
          2. From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
          3. Select the downloaded .zip file
          4. NinjaTrader will then confirm if the import has been successful.
          Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

          Once installed, you may add the Strategy to a chart by:
          • Right click your chart > Strategies... > Select the Strategy from the 'Available' list on the left > Add > OK
          For this strategy, to look at the code and edit it, please open a new Strategy Builder window and select TrailBuilderExample from the list of strategies, then click through to view the various settings.

          Please let me know if I can be of further assistance.






          Attached Files
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by WHICKED, Yesterday, 09:03 PM
          1 response
          14 views
          0 likes
          Last Post Emma1
          by Emma1
           
          Started by oleotrim, Yesterday, 11:29 PM
          1 response
          9 views
          0 likes
          Last Post Emma1
          by Emma1
           
          Started by Heavyweight_Prop, Yesterday, 09:06 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by saltminer, Yesterday, 05:49 PM
          0 responses
          10 views
          0 likes
          Last Post saltminer  
          Started by brunoviveiros, Yesterday, 05:32 PM
          0 responses
          6 views
          0 likes
          Last Post brunoviveiros  
          Working...
          X