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 rdtdale, Today, 01:02 PM
      0 responses
      2 views
      0 likes
      Last Post rdtdale
      by rdtdale
       
      Started by alifarahani, Today, 09:40 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by RookieTrader, Today, 09:37 AM
      4 responses
      18 views
      0 likes
      Last Post RookieTrader  
      Started by PaulMohn, Today, 12:36 PM
      0 responses
      7 views
      0 likes
      Last Post PaulMohn  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      41 views
      0 likes
      Last Post love2code2trade  
      Working...
      X