added logic to set Closing time of bar data