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

trendline break trigger order

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

    trendline break trigger order

    Hi,

    Is it (technically) possible to manually draw a trendline on the chart with on order executed as soon as price breaks the trendline ?

    Maybe any programming tips or suggestions?

    Greetings from the netherlands,

    Bart

    #2
    Sorry you cannot currently manually draw the line and trade that level. What you could do is use a NinjaScript strategy to draw the line for you and on that level the NinjaScript can also be told to enter trades.

    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi...

      Looking into future versions of NT a bit...I understand it is a consideration that alerts may be triggered upon a (manually drawn) trendline break...upon such an alert would one then be able to program an auto trade entry or exit ??...this could be a nice option to have....

      Thanks...

      Comment


        #4
        Thanks for the suggestion. We will add it to our list of considerations.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          anyone found answer for this TL to send order

          Hi

          if anyone out there found how to write the code for NT
          (Trendline to issue order when the price cross it)

          I have the code in TradeStation but in NT Idon't know how to write it, I am new for NT.

          Would you please some body help even with the charge.

          Thanks
          Mike Ataalla

          Comment


            #6
            Mike,

            You could also try one of these 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi Josh
              Thanks for reply

              I did try 3rd. party but no one know how to do it
              Becuse it need very advance programing
              I ask one he know how to do it but he told me he is busy and he may able to do it in Mar. or Apr. 2010

              other one he didn't answer my email even.

              and both from Ninja Trade list.

              Mike

              Comment


                #8
                I think a lot of people will appreciate this possibility to be high on the todo list.
                You should create something as used in Metatrader:
                double ObjectGetValueByShift( string name, int shift)
                The function calculates and returns the price value for the specified bar (shift related to the current bar). The price value is calculated by the first and second coordinates using a linear equation. Applied to trendlines and similar objects.
                It then must be possible to call a trendline by it's name to easily detect a break of the trendline (ols Open Long Stop):
                if(TrendLine=="ols" && Close[1]> ObjectGetValueByShift(TrendLine, 1)) OpenBuy=true;
                It will be there soon?

                Comment


                  #9
                  Hello,

                  Thanks for the feedback I will make sure it is on development list to review.

                  As such this must be done manually for the time being.

                  -Brett

                  Comment


                    #10
                    Any update on this topic? How to use trendlines for automated orders?

                    Comment


                      #11
                      Hello eddi0505,

                      Thank you for your post.

                      There is no direct function or method for this item. You could look into the same logic used int he Alert For Manually Drawn Lines, but this is an indicator and it may not be easy to directly transfer over the same idea into a strategy: http://www.ninjatrader.com/support/f...d=4&linkid=472

                      Comment


                        #12
                        Originally posted by NinjaTrader_PatrickH View Post
                        Hello eddi0505,

                        Thank you for your post.

                        There is no direct function or method for this item. You could look into the same logic used int he Alert For Manually Drawn Lines, but this is an indicator and it may not be easy to directly transfer over the same idea into a strategy: http://www.ninjatrader.com/support/f...d=4&linkid=472
                        Hello there is there an update for this indicator in NT8?

                        I searched but was unable to find.

                        Also it would be great to be able to attach to orders.

                        Thanks

                        Comment


                          #13
                          Hello ij001,

                          Thank you for your post.

                          This is now possible in NinjaTrader 8 without the need of NinjaScript. In NinjaTrader 8's chart you can draw an object on the chart and then right click in the chart > select Alerts and then develop a condition for the Data Series (price) to cross the drawing object and set up and action to submit an order.

                          You can find our more about Alerts in NinjaTrader 8 at the following link: https://ninjatrader.com/support/help...-us/alerts.htm

                          Please let me know if you have any questions.

                          Comment


                            #14
                            hi, does any one know how to automate a auto trend line strategy , example price close below trend line market s .
                            thanks

                            Comment


                              #15
                              Hello hakanshuker,

                              Are you looking for the Autotrend strategy? Below is a link.
                              This is a conversion of the AutoTrend with Historical and Signaling as originally developed by derekphelps here on the forum. Please refer to the original author for inquiries or comments on the strategy or indicator.


                              Are you looking to get started creating your own NinjaScript Strategies?




                              The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by The_Sec, Yesterday, 03:37 PM
                              1 response
                              11 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by vecnopus, Today, 06:15 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post vecnopus  
                              Started by Aviram Y, Today, 05:29 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post Aviram Y  
                              Started by quantismo, 04-17-2024, 05:13 PM
                              3 responses
                              27 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by ScottWalsh, 04-16-2024, 04:29 PM
                              7 responses
                              36 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Working...
                              X