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

1st Hour High/Low

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

    #31
    How would I set a parameter so I can easily change from a 5 min, 15min or 30min OR.

    I have tried using:

    private double starttime =093000;
    private double endtime =100000;

    But it doesn't allow me to customize it in the indicator panel.

    thanks

    Comment


      #32
      If you mean changing the underlying data series? If yes, this is not possible.
      RayNinjaTrader Customer Service

      Comment


        #33
        What I mean is to have under Parameters:

        StartTime: 930 am
        EndTime: 1000 am

        These 2 parameters can be modified from the Indicator window.

        Thanks

        Comment


          #34
          You can not customize start/end time of the underlying series by custom parameters. You only can set session begin/end for the complete chart.

          Comment


            #35
            qitrader,

            If you are looking to isolate the high/low for the first hour of the trading day, the logic that BradB offers will work and yes, you can define the start and end time for that initial period by including integer parameter for time (e.g., 93000, 103000) that can then be changed from the indicator panel.

            But as Ray and Dierk point out, you cannot wrap a variable assignment to indicator dataseries value within a time-based if-then statement and expect it to work.
            whitmark
            NinjaTrader Ecosystem Vendor - Whitmark Development

            Comment


              #36
              Whit,

              If I can't use IF then statements, can you suggest something else that might work? I want to quickly change the OR settings in the indicator window.

              Any tips you can recommend to make this work in Market Analyzer? E.g.

              Blue if close > OR high
              Red if close < OR low

              thanks

              qitrader

              Comment


                #37
                Opening Range Breakout Indicator

                quitrader,

                Is this what you are looking for? This indicator returns 4 states based on the defined market start time and opening range duration in minutes. The defined statuses are:

                3 = close above opening range
                2 = close in opening range
                1 = close below opening range
                0 = calculating opening range period

                As Ray pointed out, these conditions can be color coded in Market Analyzer as I have demonstrated. Please use the Files, Utilities, Import NinjaScript option to load this indicator.

                Regards,

                Whitmark
                Attached Files
                Last edited by whitmark; 07-16-2007, 05:18 PM. Reason: wmORB Indicator updated to accommodate trading session charts
                whitmark
                NinjaTrader Ecosystem Vendor - Whitmark Development

                Comment


                  #38
                  Whitmark,

                  I appreciate your help. I will test it out today and see how it works.

                  thank you,

                  q

                  Comment


                    #39
                    Mark,

                    THe OR indicator works well on the long side but not on the short side. I tried with ER2 today and it remained at (2) while it was below the Opening range. Any help is appreciated.

                    Thanks

                    Q

                    Comment


                      #40
                      hmm . . . seems to work fine on my end, pls see attached. Remember, its coded to change states for a close above or below the ORB and not the high or low of the bar. If you are still having issues best to post a screen shot.

                      Regards,

                      Whitmark
                      Attached Files
                      whitmark
                      NinjaTrader Ecosystem Vendor - Whitmark Development

                      Comment


                        #41
                        I think I know where the problem is. It works on a 24H template but I have a default template that runs from 930 AM till 415 PM.

                        Q

                        Comment


                          #42
                          Here is a screenshot.

                          Left = 24 HR
                          Right = modified to 930 to 415 EST

                          thanks

                          Q
                          Attached Files

                          Comment


                            #43
                            qitrader,

                            I've added some day-break logic to accommodate your trading session usage. Keep in mind that there might be some alternative "opening range" periods and chart session begin and end times, particularly for forex, for which this implementation may not work, but for most morning range breakout applications this indicator will work fine. I've updated the previous post with the latest code. Enjoy!

                            Regards,

                            Whitmark
                            Attached Files
                            Last edited by whitmark; 07-16-2007, 05:57 PM.
                            whitmark
                            NinjaTrader Ecosystem Vendor - Whitmark Development

                            Comment


                              #44
                              Session High Low Ray Lines

                              Hi Ray,

                              I need help trying to figure out session high low. I need to able to have a start and end time, for the lines drawn. I want a high low of a chosen session and it to be ending at the end of the day.

                              I been able to use two sessions using the instrument manager, but what I was looking for is the session high low lines to carry on to the next session.

                              Thanks

                              Comment


                                #45
                                Hello Bdg80,

                                There is an PriorDayOHLC inidcator that can tell you these values.

                                If you would like to specify a time frame, you can create an indicator with logic that can do this, and most of this logic can be created in the Strategy Wizard. I have attached a couple pictures roughly describing how you can create the logic. You can use Variable0 and Variable1 for the Low and High values.

                                If you do not have a programming background, I would advise to create logic in the Strategy Wizard. You could use the Strategy Wizard to create a different condition that occurs over time.

                                If you would like to specify a parameter to set the time you will have to serialize the parameter. Please see here for more information: http://ninjatrader.com/support/forum...ad.php?t=79035

                                Ray has a sample on our forums that does what you are describing as well. Please see here: http://ninjatrader.com/support/forum...ead.php?t=8600

                                If you have any additional questions, please don't hesitate to ask.
                                Attached Files
                                JimNinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by samish18, Yesterday, 08:31 AM
                                3 responses
                                14 views
                                0 likes
                                Last Post NinjaTrader_Clayton  
                                Started by funk10101, Yesterday, 09:43 PM
                                1 response
                                13 views
                                0 likes
                                Last Post NinjaTrader_Gaby  
                                Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                                5 responses
                                551 views
                                0 likes
                                Last Post NinjaTrader_ChelseaB  
                                Started by rtwave, 04-12-2024, 09:30 AM
                                5 responses
                                37 views
                                0 likes
                                Last Post NinjaTrader_ChelseaB  
                                Started by funk10101, Today, 12:02 AM
                                1 response
                                11 views
                                0 likes
                                Last Post NinjaTrader_LuisH  
                                Working...
                                X