On chart text not deleting [SOLVED]
Posted: Feb 17 2016
hi there,
I'm using this code to add an ATR value to my daily chart which updates on each tic:
if LastBarOnChart then begin
value30 = text_new(date,time,highest(high,50),"Yesterday's 5 Day ATR = " + printText);
value31 = text_setColor(value30,white);
end
else begin
value32 = text_delete(value30);
end;
Every now and then the text is not deleted and I get multiple texts all mushed over the top of each other... Do I need to alter my code?
Thanks,
Anthony
I'm using this code to add an ATR value to my daily chart which updates on each tic:
if LastBarOnChart then begin
value30 = text_new(date,time,highest(high,50),"Yesterday's 5 Day ATR = " + printText);
value31 = text_setColor(value30,white);
end
else begin
value32 = text_delete(value30);
end;
Every now and then the text is not deleted and I get multiple texts all mushed over the top of each other... Do I need to alter my code?
Thanks,
Anthony