Your arrows always seem to be located just right thru the TF spectrum. Can you check my script and or provide your rendition??
Code: Select all
void drawArrow(int i,color theColor,int theCode,bool up)
{
string name = arrowsIdentifier+":"+Time[i];
double gap = 3.0*iATR(NULL,0,20,i)/arrloc;
//
ObjectCreate(name,OBJ_ARROW,0,Time[i],0);
ObjectSet(name,OBJPROP_ARROWCODE,theCode);
ObjectSet(name,OBJPROP_COLOR,theColor);
ObjectSet(name,OBJPROP_WIDTH,theSize);
if(up)
ObjectSet(name,OBJPROP_PRICE1,High[i]+gap);
else ObjectSet(name,OBJPROP_PRICE1,Low[i]-gap);
}Ray