ObjectCreate(objName,OBJ_ARROW,0,times, 0);
ObjectSet(objName,OBJPROP_ARROWCODE,theCode);
ObjectSet(objName,OBJPROP_COLOR,theColor);
if(AlertON && time !=Time[0])
if(signaals==1) Alert(Symbol()," -=BUY=- ",Ask," ", TimeToStr(TimeLocal(),TIME_SECONDS));
if(signaals==-1) Alert(Symbol()," -=SELL=- ",Bid," ", TimeToStr(TimeLocal(),TIME_SECONDS));
time = Time[0];
if(sig) ObjectSet(objName,OBJPROP_PRICE1,High[i-1]+(gap*Point));
else ObjectSet(objName,OBJPROP_PRICE1,Low[i-1]-(gap*Point));