How can I remove the delay that this countdown sometimes have when compared with the build in countdown?
This is for volume bar charts.
Is it possible?
I tried the intrabarpersist, but the delay continued.
Code: Select all
Variables:
TextSize (14),
txtCountdown (-1),
volumeCountdown (0);
if CurrentBar = 1 then begin
txtCountdown = Text_New_S(Date, Time, 0, " ");
Text_SetSize(txtCountdown, TextSize);
Text_SetStyle(txtCountdown, 0, 0);
end;
volumeCountdown = barinterval - ticks;
text_setlocation_s(txtCountdown, date, time_s, low);
text_setstring(txtCountdown, numtostr(volumeCountdown, 0) + "V");