I have a problem with drawing a line between two points in my script.
I use this piece of code to get fractals collection:
fractalHandler = iFractals(tradeSymbol, PERIOD_H4);
CopyBuffer(fractalHandler, 0, 0, 20, uFractals);
Then, after a few calculations I would like to draw a line which connect two fractals - let say uFractals with uFractals. I wanted to use something like this:
ObjectCreate(0, "myTrendLine", OBJ_TREND, 0, datatime, uFractals, datatime, uFractals);
But I have now idea how to get a datatime value for my selected fractals.
Does anyone know the trick how to get a datetime value for single fractal? Or maybe there is a better/easiest way to draw a line between two points?