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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      46 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      28 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      163 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X