Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting under construction bar values

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

    Getting under construction bar values

    Hello support,

    I am writing an indicator in which I need the current days volume so if I run my indicator anytime before the close such as 8:45am then it would give me the total daily volume from 8:30 to 8:45 or if run at 12noon, then it would give total volume from 8:30 to 12 noon.

    A little restriction here is that for some reasons I can only get bars using GetBar method in my indicator and I was able to get the latest bar with this method but prices of that bar were not matching the chart values. Attached is the sample indicator which I was using to achieve this.

    Please advise how can I get the bar values that is not fully constructed yet.

    Thanks,
    Attached Files

    #2
    turn the "CalculateOnBarClose" to false.
    Values wont update until bar finished otherwise.

    Comment


      #3
      Wajeeha, marty's comment for working with the currently developing bar would hold true, however the Data.Bars.GetBar would not be documented nor supported by us. I would just arrive at the daily volume then by other means, for example summing up your bar series volume.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X