Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto-Trail function

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

    Auto-Trail function

    Dear community,

    I'm new to NinjaScript and heard about the Auto-Trail function in NinjaTrader. As I understood, I have to place it manually for every order that I want to trail.

    My question is: Can I Auto-Trail every order that I opened manually? So that I don't have to choose the order and set it to Auto-Trail.

    Best regards and thanks in advance,

    Max

    #2
    Auto trail with manual orders is a function of ATM orders.

    If you've not done so already these are some great resources on using ATM strategies to automatically manage your stops/targets.

    Guides and videos: http://www.ninjatrader.com/support/h...gement_atm.htm

    Recorded webinars: http://www.youtube.com/watch?v=lvLciOlWthY


    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Thank you very much firstly!

      Can you give me a code snippet where I can set the auto-trail function to every currently open order?

      My strategy easily looks like this:
      Set the stoploss of every order to 2 points. And that every time when I open an order.

      Thank you very much!

      Comment


        #4
        There isn't one piece of code that will set all orders to auto trail.

        Before I further assist can you let me know if you're trying to manually place Entry orders or have the Entry orders automatically placed?
        LanceNinjaTrader Customer Service

        Comment


          #5
          The orders are placed manually and then have to auto-trail by the ATM what you said.

          Comment


            #6
            In that case this won't be coding related at all. You would want to configure an ATM strategy that has the desired trailing stop attached. Then each time you place the order it will use that same stop technique.

            While I think the webinars above will be the most informative this talks about trails specifically: http://www.ninjatrader.com/support/h...auto_trail.htm
            LanceNinjaTrader Customer Service

            Comment


              #7
              Ok, thanks. But I really don't understand.

              I know it from the MetaTrader that every time I open an order manually, the Expert Advisor sets the stoploss to 2 Points. Is this possible in NinjaTrader? Or do I have to open the orders through a strategy?

              Comment


                #8
                I have to set a stoploss and trail the order I opened manually by automatic system. So that I don't have to set the stoploss and auto-trail manually.

                Comment


                  #9
                  I think there might be some word confusion here.

                  Are you using a NinjaScript Strategy to place orders automatically for you, or are you manually clicking on either the SuperDOM or ChartTrader to manually place your orders?

                  Both ways are possible to have a 2 point stop automatically attached but require different approaches
                  LanceNinjaTrader Customer Service

                  Comment


                    #10
                    I manually click to place an order (ChartTrader or SuperDOM). What do I have to do then to place an automatic 2 Points stoploss and auto-trail then?

                    Many thanks to you and your support! Will answer you in a few hours.

                    Comment


                      #11
                      Hello,

                      An ATM strategy and Stop Strategy must be defined before the entry order is submitted. Please see the following link to our Help Guide for more information about configuring ATM strategies: http://www.ninjatrader.com/support/h...parameters.htm
                      KyleNinjaTrader Customer Service

                      Comment


                        #12
                        So my strategy works like this:

                        I open a buy or sell order manually.

                        The rest is automatic:

                        1. set stoploss to 2 points
                        2. set stoploss to +2 points in profit
                        3. trail-stop after the 2. step

                        Can I make this with ATM? Or how do I do that?

                        Comment


                          #13
                          Yes this can be made with an ATM

                          See video: http://screencast.com/t/BMffhZJSU

                          Let me know if I can further assist.
                          LanceNinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by NinjaTrader_Lance View Post
                            Yes this can be made with an ATM

                            See video: http://screencast.com/t/BMffhZJSU

                            Let me know if I can further assist.

                            Thank you. Will try to watch it tonight and answer you in a while.

                            Great support here!

                            Comment


                              #15
                              Ok, I got this video and finally made my first ATM strategy.

                              But there is a problem. I have a stoploss of 2 and want to set it to +2 if the price is 2 points in profit. So it should not be breakeven stoploss. How do I do that?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              637 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              366 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              107 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              569 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              571 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X