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

Ray - SampleGetHighLowBytimeRange

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

    Ray - SampleGetHighLowBytimeRange

    Your code seems to omit the first bar of the session

    The following amendment seems to capture it

    Code:
     	// 
    double highestHigh = MAX(High, startBarsAgo  -  endBarsAgo)[[COLOR="Red"]endBarsAgo+1[/COLOR]];
    			
    			
    double lowestLow = MIN(Low, startBarsAgo -  endBarsAgo)[[COLOR="#ff0000"]endBarsAgo+1];[/COLOR]

    #2
    Hello,


    Thank you for your post. We will look into this.
    DenNinjaTrader Customer Service

    Comment


      #3
      Hello,


      Are you referring to the last bar of the session or the first bar? Can you post a screen shot of what you are talking about? I added "+1" as indicated below and I did not notice any difference. Can you provide steps I can take to reproduce what you are seeing?
      DenNinjaTrader Customer Service

      Comment


        #4
        screen shot

        Yes - here is a screen shot of today.
        I am unable to put "0" ie zero into the input - it automatically converts it to "1". Hence, I think, the problem.
        Chart is a 5 min chart of the dax Dec contract.
        Attached Files
        Last edited by Mindset; 10-27-2008, 02:50 PM.

        Comment


          #5
          Does this version work for you?
          Attached Files
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Fine

            That works fine Josh - should have thought of that solution myself.

            Comment


              #7
              NinjaTrader_Josh / Mindset,

              I have been looking all over the forum and trying to create an indicator like this. Can you please let me know how this is created? I have no programing experience. I did upload the script from Ninjatrader_Josh, however, I would like to have a horizontal line go further across the chart and cound not do so. Ive tried to "write" my own but as i said, I have no programming experience and I'm finding that I'm spending too much time to automatically draw two lines!!

              Please Help!

              Thanks!

              Comment


                #8
                Hello,

                This will take programming, as you suspect. We will help with specific implementation questions but we cannot program it for you.

                I suggest contacting our 3rd party NinjaScript Consultants here:


                Or attempt it yourself and post your specific questions.
                DenNinjaTrader Customer Service

                Comment


                  #9
                  MidPoint please ?

                  Originally posted by NinjaTrader_Josh View Post
                  Does this version work for you?
                  Hi Josh..

                  I was wondering if a midpoint could be added to plot between the high and the low of the first hour.
                  This is a very useful on Ninja thanks for providing it.

                  Comment


                    #10
                    See attachment.
                    Attached Files
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks Josh...that was quick

                      Comment


                        #12
                        I am wondering how the fib numbers are drawn automatically. I couldn't find any values when I opened it in the editor. I thought I would find set values in the script, but it seems as though it is using some predetermined value from somewhere.
                        I would like to change the values that it is using. Is there a way of doing this?

                        Comment


                          #13
                          vast524, this script is not fib extension / retracement related, it determines and displays the high / low for a given timerange - http://www.ninjatrader-support2.com/...ead.php?t=8600
                          BertrandNinjaTrader Customer Service

                          Comment


                            #14
                            How would I change this so I can start the range the day before and use that in my calculations? Thanks!

                            GT

                            Comment


                              #15
                              GreenTrade,

                              You need to first decide when you want to retrieve the information. Then you can loop through previous bars information and then get the information you need.
                              Josh P.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Lumbeezl, 01-11-2022, 06:50 PM
                              31 responses
                              817 views
                              1 like
                              Last Post NinjaTrader_Adrian  
                              Started by xiinteractive, 04-09-2024, 08:08 AM
                              5 responses
                              14 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Started by swestendorf, Today, 11:14 AM
                              2 responses
                              6 views
                              0 likes
                              Last Post NinjaTrader_Kimberly  
                              Started by Mupulen, Today, 11:26 AM
                              0 responses
                              7 views
                              0 likes
                              Last Post Mupulen
                              by Mupulen
                               
                              Started by Sparkyboy, Today, 10:57 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Working...
                              X