Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629
|
TahuPhoenix,
with your code you add up the volume for all bars on the chart. What you need to do is set a start value for the "for loop" which should be the bar number of the first bar of the new day.
Besides that you might not even need a loop, but you could simply sum the volume by adding the new volume each bar and reset this value on a new day.
Take a look at the build in Volume indicator, depending on the bar type you are using the correct reserved word for the volume is either Volume or Ticks.
Regards,
ABCTG
|