• 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

Reference to the daily open

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

    Reference to the daily open

    Hello,

    probably its realy easy answered, but i havent found the answer in the forum.

    when i like to enter a trade if the close of the last bar was higher then the open of the day (first tick of the session), how do i do this ?

    if (Close[0] > ??? )

    Thank you

    #2
    Hello,

    Just store the Open[0] of the first tick that comes in for the session then use that value in your condition. Give that a shot and let me know if you have any questions.
    DenNinjaTrader Customer Service

    Comment


      #3
      you could also use the indicator that comes with NT named CurrentDayOHL

      Comment


        #4
        Hi Ben,

        i dont know how to start with this because i dont know how to store the first tick of the day. Could you give me an additional hint please ? Maybe there is a sample file you could refer to that i could use to archive my goal ?

        maybe i start like:
        double DayOpenPrice = Open[?].firstbarofsession ?

        Thank you !
        Last edited by nt2010; 08-15-2010, 02:08 PM.

        Comment


          #5
          Hello,

          If Laserdan's suggestion does what you want, that is probably cleaner. Just always use the CurrentDayOHL value.

          This link will help:
          http://www.ninjatrader-support.com/H...entDayOHL.html

          Give it a try and post your code if it doesn't work.
          DenNinjaTrader Customer Service

          Comment


            #6
            Hello Ben & Laserdan,

            thank you for your help.
            It seems that
            Close[
            0] > CurrentDayOHL().CurrentOpen[0]
            does the job.

            thank you
            nt2010

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Gerik, Today, 04:09 AM
            1 response
            4 views
            0 likes
            Last Post Gorkhaan  
            Started by TrendFollowingCapital, Today, 05:09 AM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by Jakub, Yesterday, 11:52 AM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by dltharpe, Yesterday, 09:17 AM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by Johnny Santiago, 10-11-2019, 08:21 AM
            8 responses
            116 views
            0 likes
            Last Post cshrum
            by cshrum
             
            Working...
            X