Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Retrieving data from specific bars from the previous day

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

    #16
    I am certain we are getting very close. Thank you so much for the specific help!

    I just applied the strategy you provided to a chart when running Playback Connection with the start/end spanning three consecutive days. During playback, a gold dot was generated on the first bar of each new day.

    A blue dot was not generated on the last bar of session within the start/end duration of the Playback Connection. (The blue dots do appear on the days before the Playback start/end time frame.)

    A tweak that would allow "First Bar of Session" and "Last Bar of Session" dots to be appear during Playback would get me almost to my goal.

    One more clarification. Being that I need to "Last Bar of Session" info for multi-time frames, is the following code correct when trying to differentiate the “Last Bar” of a specific time frame?

    (BarsInProgress == 2 && Bars.IsLastBarOfSession && CurrentBars[2] != Bars.Count-1)
    (BarsInProgress == 3 && Bars.IsLastBarOfSession && CurrentBars[3] != Bars.Count-1)

    Thanks in advance.

    Comment


      #17
      Hello ArmKnuckle,

      Thanks for your reply.

      Let's take another approach here that would be simpler.

      If the code has detected the first bar of the session, then the previous bar to that would be the end of the previous session.


      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      37 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
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 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