Info between two time points

 

Hi,

I have a daily data. So time is "00:00".

I have a Start date and an end date.

Q: Are there any functions that will give me the 'number of bars' and 'total volume' between theses two time point ?

 

iBarShift() will give you the bar numbers for datetimes.

Then a loop...

for(int i = startingBar; i >= endingBar; i--){

... do your calculations bar by bar

}