Bars() function

 

The reference says that: "If data for the timeseries with specified parameters are not formed in the terminal by the time of the Bars() function call, or data of the timeseries are not synchronized with a trade server by the moment of the function call, the function returns a zero value."

But, I always get some positive numbers for pairs which don't have .hcc files by the time of the Bars() function call ...

And, after calling this function a .hcc file is created for a pair which does not have it before the calling of the Bars() function.

When the Bars() function returns zero?

Reason: