period converter error

 
Hello, there is a major problem in the "period converter".
Depending on the period and the multiplication factor, the script does not convert some of the latest bars.
For example, if we make a conversion from 1H to 3H and now we are in the "hour 2", this bar is not converted.
Any solution?
Thank you
 
antonio1024:
Hello, there is a major problem in the "period converter".
Depending on the period and the multiplication factor, the script does not convert some of the latest bars.
For example, if we make a conversion from 1H to 3H and now we are in the "hour 2", this bar is not converted.
Any solution?
Thank you
Yes, it's very annoying. Use 30 min chart and multiply by 6.
Reason: