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

get last session date

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

    get last session date

    is there an easy way to get the date of the last session?

    I am using minute bars, and I call Time[0].toshorttimestring() and I get the current date, but I want to get the last session date (as I am grabbing daily data from a historical file). I guess I could add another data series, daily and call the barsarray[1] but I was hoping there was an easier way

    Thanks in advance

    #2
    Hi Eurostoxx, please see the GetNextBeginEnd() method for grabbing session information - http://www.ninjatrader.com/support/h...xtbeginend.htm. There are a few other methods/properties that could be helpful in the Bars section of the NT7 help guide - http://www.ninjatrader.com/support/h...s/nt7/bars.htm.
    AustinNinjaTrader Customer Service

    Comment


      #3
      thank you kindly... those were great suggestions, for my current issue and other ones I was having.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by dward123, 01-02-2024, 09:59 PM
      4 responses
      174 views
      0 likes
      Last Post Lancer
      by Lancer
       
      Started by ETFVoyageur, Today, 04:00 PM
      2 responses
      19 views
      0 likes
      Last Post ETFVoyageur  
      Started by AaronKTradingForum, Today, 03:44 PM
      1 response
      8 views
      0 likes
      Last Post AaronKTradingForum  
      Started by Felix Reichert, 04-26-2024, 02:12 PM
      11 responses
      80 views
      0 likes
      Last Post Felix Reichert  
      Started by junkone, 04-28-2024, 02:19 PM
      7 responses
      83 views
      1 like
      Last Post junkone
      by junkone
       
      Working...
      X