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 Fran888, 02-16-2024, 10:48 AM
      3 responses
      44 views
      0 likes
      Last Post Sam2515
      by Sam2515
       
      Started by martin70, 03-24-2023, 04:58 AM
      15 responses
      114 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by The_Sec, Today, 02:29 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by jeronymite, 04-12-2024, 04:26 PM
      2 responses
      31 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by Mindset, 05-06-2023, 09:03 PM
      10 responses
      265 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X