More bug fixing for the case when stock has data for one day only.
More bug fixing for the case when stock has data for one day only.

QuantSoftware/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,QuantSoftware/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,QuantSoftware/QuantSoftwareToolkit,QuantSoftware/QuantSoftwareToolkit,QuantSoftware/QuantSoftwareToolkit,michaelhuang/QuantSoftwareToolkit,QuantSoftware/QuantSoftwareToolkit