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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X