• 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

pullback code in Ninjascript

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

    pullback code in Ninjascript

    Hi! I enjoy the indicator and strategy development of Ninjatrader as well as the NinjaScript.
    Great Platform for Automatic Trading.

    Quick question: Do you have as sample Code for uptrend then pullback as see below?
    I tried to start from scratch, I believe with your rich knowledge base, you may have sample examples.

    Thanks,
    NewtonsLab

    #2
    Hello,


    You might find something in the file sharing section of the forum, however I can't see your screen shot that you posted.
    DenNinjaTrader Customer Service

    Comment


      #3
      Pullback

      Hi! Ben:

      Thanks for the reply.
      There is no screen shot just sketch a pullback in few bars format.

      Regards,
      Newtonslab

      Comment


        #4
        Hello,


        I am sorry, the sketch is not visible to me so I do not know what you are looking for.
        DenNinjaTrader Customer Service

        Comment


          #5
          Pullback Sketch

          Ben here is the pullback Sketch

          |
          | |
          | |
          | |
          |

          Cheers,
          NewtonsLab

          Comment


            #6
            Hello,


            Sorry, I still do not understand what you are looking for. Maybe take a screen shot of what you are looking at on a chart.

            To take a screen shot select Ctrl+Print Screen. Then, open up Paint from Start > Accessories > Paint. Paste into the Paint program by clicking CTRL + V. Lastly, save as a jpeg file and post as an attachment.

            For XP use Alt+Prnt Scrn instead.
            DenNinjaTrader Customer Service

            Comment


              #7
              Pullback Sketch

              Ben:

              http://www.thepatternsite.com/pullbacks.html

              please let me konw if it is clear for a standard the "Pullback"

              Newtonslab

              Comment


                #8
                You can take a look at our NBarsUp and NBarsDown for a reference sample of how to detect a very strict semi pullback. What this does not do is detect the initial up or down trend. Writing code to detect such a pattern is not a trivial matter, something we can just post up quickly. You have to introduce some fuzzines in your logic to not lose some of the patterns. Check out the AutoTrendLine code in our File Sharing section to get an idea of how trends can be detected and then try to merge this idea with the NBarsDown etc...
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Pullback

                  Ben: Thanks

                  How about us Swing() indicator?

                  Comment


                    #10
                    Originally posted by NinjaTrader_Ray View Post
                    You can take a look at our NBarsUp and NBarsDown for a reference sample of how to detect a very strict semi pullback. What this does not do is detect the initial up or down trend. Writing code to detect such a pattern is not a trivial matter, something we can just post up quickly. You have to introduce some fuzzines in your logic to not lose some of the patterns. Check out the AutoTrendLine code in our File Sharing section to get an idea of how trends can be detected and then try to merge this idea with the NBarsDown etc...

                    Thanks Ray: I was reading the NBarUp and NBarDown but it is atrue/false with preset 3 true as input, as you indicated, I have to identify the pivot point before the pullback which Nbardown and Nbarup can not ptovide.
                    that provide me to study furth. It turns out Swing() may be able to give
                    the preset "fuzzie logic" as you indicated.

                    I was quite surprised that "long a uptrend with a pullback: is a such classic Pattern of Whcih Ninjatrader had not provide a solid example code
                    or indicator or strategy along that line....
                    Ray: are you in a position to figure/help it out since I am a newer comer...

                    Comment


                      #11
                      Our company is in a position to provide guidance and support on our product(s) but not to do the actual coding work. If you require some assistance in that area you can contact any of our qualifed NinjaScript consultants.

                      http://www.ninjatrader.com/webnew/pa...injaScript.htm
                      RayNinjaTrader Customer Service

                      Comment


                        #12
                        You can take a look at our NBarsUp and NBarsDown for a reference sample of how to detect a very strict semi pullback. What this does not do is detect the initial up or down trend. Writing code to detect such a pattern is not a trivial matter, something we can just post up quickly. You have to introduce some fuzzines in your logic to not lose some of the patterns. Check out the AutoTrendLine code in our File Sharing section to get an idea of how trends can be detected and then try to merge this idea with the NBarsDown etc...
                        Hi

                        Where is the File Sharing section of NinjaTrader. I've never found it.

                        Thanks

                        Comment


                          #13
                          Originally posted by daniel_boteroc4 View Post
                          Hi

                          Where is the File Sharing section of NinjaTrader. I've never found it.

                          Thanks
                          Scroll down into the sections.


                          http://ninjatrader.com/support/forum/index.php

                          Here's a direct link.

                          http://ninjatrader.com/support/forum...splay.php?f=37

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by tvaughan4, 12-13-2019, 10:46 PM
                          2 responses
                          15 views
                          0 likes
                          Last Post tvaughan4  
                          Started by digibob, 12-13-2019, 10:01 PM
                          3 responses
                          12 views
                          0 likes
                          Last Post digibob
                          by digibob
                           
                          Started by ldissinger, Yesterday, 12:55 PM
                          1 response
                          17 views
                          0 likes
                          Last Post ldissinger  
                          Started by pstrusi, Yesterday, 09:06 AM
                          1 response
                          27 views
                          0 likes
                          Last Post marcus2300  
                          Started by vpzdcv, Yesterday, 02:31 AM
                          0 responses
                          13 views
                          0 likes
                          Last Post vpzdcv
                          by vpzdcv
                           
                          Working...
                          X