when i run the code , it places the lines but not at the high or low , you can see what i mean take a look at ss1and there is also the problem that when i attach the indicator from the indicator window in the mt4 terminal , it does place the lines but way above from the price where it should be take a look at ss2
Looks like belonging to a different candle. Did you scroll the chart to find it? Else add the time of the candle in question to the lines. Create a text object maybe or print to output.
ObjectCreate(LineName1, OBJ_HLINE, 0, 0, High[i]);
well i tried but i cant figure it out