Hlw
how can i draw horizontal line upto advance 10 candle from specific candle?
i also find ilowest and draw trend line from ilowest to that 10 advance candle horizontal price
where my mistake in code? nothing showing
how can i draw horizontal line upto advance 10 candle from specific candle?
Inserted Code
double pclose= iClose(Symbol(),0,1); double popen = iOpen(Symbol(),0,1); double phigh = iHigh(Symbol(),0,1); double plow=iLow(Symbol(),0,1); double PHighest = High[iHighest(Symbol(),0,MODE_HIGH,15,0)]; double PLowest = Low[iLowest(Symbol(),0,MODE_LOW,15,0)]; // draw horizontal line datetime m = Time[1]; datetime m1 = Time[-10]; ObjectCreate("h1", OBJ_HLINE, m, m1, popen); ObjectSet("h1", OBJPROP_STYLE, 4); ObjectSet("h1", OBJPROP_COLOR, Red);
i also find ilowest and draw trend line from ilowest to that 10 advance candle horizontal price
Inserted Code
ObjectCreate("topname", OBJ_TREND, 0, Time[PLowest ], PLowest ,Time[-10],popen); ObjectSet("topname", OBJPROP_STYLE, 4); ObjectSet("topname", OBJPROP_COLOR, Red);
where my mistake in code? nothing showing