Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EOD - how to find?

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

    EOD - how to find?

    Hi!

    I want to check what the EOD is from the code for the Chart's Instrument. How can I find this?
    Also I want to check if a specific historical candle is the 1st (or 2nd) candle after EOD. Is this possible?

    Thank you!

    #2
    Hello webus,

    By end of day do you mean the price at that time? Are you asking to find the time when the end of the session happens?

    To know if a candle is the first after the previous sessions close you can check the IsFirstBarOfSession https://ninjatrader.com/support/help...stBarOfSession

    Comment


      #3
      Hi NinjaTrader_Jesse​,

      I mean the exact time of the End of the trading day (EOD).
      For instance, I have a candle 15 bars ago. I want to check what the EOD time is for this candle.

      Comment


        #4
        Hello webus,

        I am not certain I understand your example, the end of day happens at a specific time for the trading hours. The 15 bars ago candle doesn't have a end of day of its own, it would be the same session end time for all candles in the session.

        To find the session end time you can use the SessionIterator, there is a sample that shows how to get the end of the session time here: https://ninjatrader.com/support/help...essionIterator

        Comment


          #5
          Hi NinjaTrader_Jesse​,​

          I am not certain I understand your example, the end of day happens at a specific time for the trading hours. The 15 bars ago candle doesn't have a end of day of its own, it would be the same session end time for all candles in the session.
          Yes, but I want to know what the session end time is for this specific candle. I understand that this will be the same as for all candles in this session.
          I think your example by the last link covers my question, am I correct?

          Comment


            #6
            Hello webus,

            You would have to use the SessionIterator for that and provide the time of the candle you wanted to know about

            sessionIterator.GetNextSession(Time[BarsAgoYouWantedToKnowAbout], true);

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            44 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X