I am not able to get the idea how to provide the time correctly to draw a line. I tried like
ObjectCreate('line', OBJ_HLINE, 0, 0, 2100);
which is drawing a line at the value of 2100, but it starts from 0 and spreads to the right end unlimited. How to draw the line starting from the 50th candle from last till the second last candle?