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

Openning price and extended session

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

    Openning price and extended session

    I would like to compare the current price versus the days opening value.

    However, i would just like to deal with the NYSE normal hours, 9:30-4:00pm EST. So how would i find the opening value for the bar at 9:30am? Or is there a way to tell the software, to only use regular hours as its source for bars.

    Thanks in advance.

    #2
    Hi rscott6666, welcome to our support forums! You could set your session times to the regular market hours (double click on the chart and set those in the Chart properies under Session Begin / End).

    For a programmatic approach, you can use GetBar() - http://www.ninjatrader-support.com/H...V6/GetBar.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you, i've already figured the answer out.

      i thought i had tried setting the session times and it not doing what i wanted, but i've since noticed that indeed it does the trick. Knowing the getBar function will help as well.

      Thanks again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by alifarahani, Today, 09:40 AM
      6 responses
      36 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X