void drawLine(const double lvl, const string name, const color Col)
{
if (Bars > 0) { //Prevent array out of range
ObjectDelete(name);
ObjectCreate(name, OBJ_HLINE, WindowFind(short_name), Time[0], lvl, Time[0], lvl);
ObjectSet(name, OBJPROP_STYLE, STYLE_DOT);
ObjectSet(name, OBJPROP_COLOR, Col);
ObjectSet(name, OBJPROP_WIDTH, 1);
ObjectSet(name, OBJPROP_SELECTABLE, false);
}
}