Hello,

Could someone please explain to me why the sum of the minute volume data from 9:30 to 9:45 and 9:45 to 10 as coded:

 fifteen_min_v = round(history_min_v[-361:-347].sum(), 0)
 fifteen_to_thirty_v =round(history_min_v[-346:-332].sum(), 0)

does not equal the sum of the minute volume data for the same time frame 9:30 to 10 but in a single line of code as coded:

thirty_min_v = round(history_min_v[-361:-332].sum(), 0)?

If you look at the logs for DWAC the 9:30 to 9:45 minute volume sum is 5287716, and the 9:45 to 10 minute volume sum is 4098751, but the 9:30 to 10 minute volume sum is 10201721.  However 5287716 + 4098751 =/= 10201721.

Any explanation for this would be appreciated.

Author