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

programming help

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

    programming help

    Does anyone know how to analyze this in excel, or a program?
    Or if someone can write me a script? I would be willing to pay.

    Basically I have a lot of data in excel format on the open and close of a number of trading days (over 1000). I am trying to find how often this stock has moved up (for example) 5 dollars without a retracement of $1. Anyone know how to do this in Excel or NT? Any help appreciated. thanks!

    #2
    Hi,
    Give an example of your data and what you want.

    Baruch

    Comment


      #3
      Hi Baruch,

      Here's a sample of my data below, basically I just want to see amongst my data how many times it moves > than 0.03 without a retracement of at least 0.005.
      The dates are on the left and the move (close minus open) is to the right. thanks

      2009.01.02 -0.00030
      2009.01.02 0.00010
      2009.01.02 0.00080
      2009.01.02 -0.00300
      2009.01.02 0.00220
      2009.01.02 0.00350
      2009.01.02 0.00200
      2009.01.02 0.00470
      2009.01.02 -0.00190
      2009.01.02 0.00070
      2009.01.02 -0.00020
      2009.01.02 -0.00150
      2009.01.02 0.00090
      2009.01.02 0.00040
      2009.01.02 -0.00310
      2009.01.02 -0.00380
      2009.01.02 0.00100
      2009.01.02 0.00100
      2009.01.02 0.00170
      2009.01.02 0.00120
      2009.01.02 0.00510
      2009.01.02 -0.00270

      Comment


        #4
        What do you mean "without a retracement of at least 0.005"?
        Can you show on the sample?

        Baruch

        Comment


          #5
          for example, i want to analyze how many bars move up 0.0300 in my data without a retrace, woops i forgot to add these are 30 minute bars. So for example if 10 (30 minute) bars move up 0.0300 and do not drop 0.0005 at any point then that would count as one. I want to see how many times it does this.

          For example here's one that would pass
          bar 1: +0.01
          bar 2: +0.01
          bar 3: -0.003
          bar 4: +0.02

          here it moved up 0.0397 with only a retracement of 0.003

          one that would not pass is
          bar1: 0.02
          bar2: 0.009
          bar3: -0.01
          bar4: 0.01

          while it moved > than 0.03, it had a retracement > than 0.005 as well. Hope this clears up what i mean thanks
          Last edited by katiewc; 01-27-2010, 07:35 AM.

          Comment


            #6
            I don't see how it can be done in excel.

            Baruch

            Comment


              #7
              damn.. okay
              thx anyways

              Comment


                #8
                Katie, I'm not aware of readymade methods for generating those statistics, but with NinjaScript / C# custom coding it should be doable generally spoken.

                If you want to contact a consulant to help you on this quest, please use our list for locating those -

                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Newbi need code help for "IF"

                  Hi,

                  I am a NT newbi, please help me;

                  I want to keep values inside of the nest of the "if" statement, how can I do it?

                  Here is the code example:

                  if ( expression )
                  {
                  SP.Set( x ) ;
                  MP.Set( y ) ;
                  }
                  SP[0] = ? ;
                  MP[0] = ? ;

                  I want the SP[x] and MP[y] values inside of the {} nest hold outside of the {}.

                  I want to keep vales outside of the {} nest like this:
                  SP[0] = x ;
                  MP[0] = y ;

                  Comment


                    #10
                    dowhk, not sure I follow you - are you trying to 'get' the values you set inside the if statement?
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Bertrand View Post
                      dowhk, not sure I follow you - are you trying to 'get' the values you set inside the if statement?
                      Yes, Bertrand.

                      Comment


                        #12
                        You could use GetBar() to arrive at the barsAgo value where your condition was true, thus you could plug this into the dataseries and retrieve the Set values -

                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Bertrand View Post
                          You could use GetBar() to arrive at the barsAgo value where your condition was true, thus you could plug this into the dataseries and retrieve the Set values -

                          http://www.ninjatrader-support2.com/...ad.php?t=19176
                          Hi Bertrand,

                          Thank you for yoyr prompt reply/help.
                          I cancel(?) my original question(the question itself was raised by some confusion).

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by elderan, Yesterday, 08:03 PM
                          1 response
                          12 views
                          0 likes
                          Last Post NinjaTrader_BrandonH  
                          Started by samish18, Yesterday, 08:57 AM
                          8 responses
                          25 views
                          0 likes
                          Last Post samish18  
                          Started by DJ888, 04-16-2024, 06:09 PM
                          3 responses
                          10 views
                          0 likes
                          Last Post NinjaTrader_Erick  
                          Started by RookieTrader, Today, 07:41 AM
                          0 responses
                          3 views
                          0 likes
                          Last Post RookieTrader  
                          Started by maybeimnotrader, Yesterday, 05:46 PM
                          1 response
                          18 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Working...
                          X