Highest High
Posted: 15 Dec 2006
I'm trying to label and retrieve the highest high over a counted area then label it with an arrow. I start the count with condition1 then label it once condition2 is met. The issue I have is that sometimes the highest high occurs before conditon2 is met. I want to label that highest high once contion2 is meet, however, it sometimes requires moving the arrow back. Here is my attempt at doing this, however, it's not working. If anyone could help that would be great.
if Condition1 then begin
counter=counter+1;
if condition2 and condition3 then begin
MyArray[0]=MyArray[1];
MyArray[1]=MyArray[2];
MyArray[2]=highest(high,counter);
id = arw_new(d,t,MyArray[2],true);
arw_setcolor(id,yellow);
arw_setstyle(id, ArrowStyle);
arw_setsize(id, ArrowSize);
arw_settextcolor(id, ArrowTextColor);
arw_settext(id, "PF");
end;
end;
if Condition1 then begin
counter=counter+1;
if condition2 and condition3 then begin
MyArray[0]=MyArray[1];
MyArray[1]=MyArray[2];
MyArray[2]=highest(high,counter);
id = arw_new(d,t,MyArray[2],true);
arw_setcolor(id,yellow);
arw_setstyle(id, ArrowStyle);
arw_setsize(id, ArrowSize);
arw_settextcolor(id, ArrowTextColor);
arw_settext(id, "PF");
end;
end;