Jaxon,
Could be the TS version #....
Try the code.
input: AlertTicks(0), HOffset(3),
AlertText("Vol"),AlertColor(magenta),
NonAlertColor(White);
vars: txt(-1),TicksLeft(0),color(0);
if BarType = 0 then
begin
//initiate the text variable
if BarNumber = 1 then
txt = text_new(date,time,close," ");
TicksLeft = BarInterval - ticks;
if OneAlert(TicksLeft <= AlertTicks) then
alert(NumToStr(TicksLeft,0)+"-"+AlertText+" alert");
//text color changes with alert
if TicksLeft > AlertTicks then
color = NonAlertColor
else
color = AlertColor;
//reset at each tick
text_SetLocation(txt,date,CalcTime(time,HOffset),close);
text_SetString(txt,NumToStr(TicksLeft,0)+" " + AlertText);
text_SetColor(txt,color);
end;
Anek