Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Opening range breakout

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

    Opening range breakout

    has anyone figured out how to by 7 points off the open?

    #2
    Use Bars.FirstBarOfSession to get the open of the day by accessing Open[0] on that bar. Then it is just a matter of adding 7 points to that value when you submit your EnterLongLimit order.

    http://www.ninjatrader-support.com/H...OfSession.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks for the hlep

      Comment


        #4
        how about if you want to do this but with day session only times for numerous markets (8:20 EST for bonds, 9:00 for crude, 9:30 for S&Ps) etc. Not interested in building historical bars with day only data, just trading off the open for several markets using the current day session only times.

        thanks in advance.

        Comment


          #5
          Hello,

          Use Josh's post and this link to do it off of multiple instruments:
          http://www.ninjatrader-support.com/H...struments.html
          DenNinjaTrader Customer Service

          Comment


            #6
            thanks. I'm still just a bit lost though: how do you set the appropriate times for each individual market for which the "buy off the open" stop would be worked? ( I only want to work the stop from 9:00am to 2:30 p.m. for crude, from 9:30am to 4:00 p.m. for emini's, 8:20 a.m. to 3:00 pm for bonds). I understand there will be a temptae for this in version 7, but I can't seem to figure out how to do this in the current version.

            Comment


              #7
              Hello,

              Oh, just filter using time ToTime(Time[0]):
              http://www.ninjatrader-support.com/H...V6/ToTime.html
              These two links have examples that will help you (but not exactly what you want to do):
              http://www.ninjatrader-support2.com/...ead.php?t=3226
              http://www.ninjatrader-support2.com/...ead.php?t=3225

              But you will need to build a different criteria for each instrument bar you use.

              Give it a try and post code and questions if you get stumped.
              DenNinjaTrader Customer Service

              Comment


                #8
                wil do. thanks for the quick responses.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Futurestrader00, Yesterday, 06:14 PM
                1 response
                17 views
                0 likes
                Last Post cincai
                by cincai
                 
                Started by ballston, Today, 06:32 AM
                0 responses
                4 views
                0 likes
                Last Post ballston  
                Started by Danila, Today, 04:38 AM
                2 responses
                7 views
                0 likes
                Last Post Danila
                by Danila
                 
                Started by sinpeople, Today, 04:38 AM
                0 responses
                10 views
                0 likes
                Last Post sinpeople  
                Started by kiffgj, Today, 04:23 AM
                0 responses
                8 views
                0 likes
                Last Post kiffgj
                by kiffgj
                 
                Working...
                X