Divide by zero coming from iCandleID
-
Hi,
Depending on tick data there is a line of code inside iCandleID that can cause a divide by zero problem
Sometimes I get the start of day candle open value & it will try get candle ID for specific timeCandleID = (int)MathCeil((double)mins_diff/(double)mins_tf);
could you consider some protection on this
if(mins_tf>0){
CandleID = (int)MathCeil((double)mins_diff/(double)mins_tf);
} -
I did that. Thank you for noticing this bug in the code
