a few months ago i find a solution to have this on screen (ticks resolution)..all credits to crazynasdaq
and the code :
Code: Select all
//CrazyNasdaq tick countdown counter
//october 17th 2016
inputs:
TXT.dimension(22),
TXT.color(black),
TXT.Background(yellow),
TXT.Position.Vert(10),
TXT.Position.Oriz(10),
Near.close(false);
vars:
Mytick(0),
MyBar(0), countdown(0),
HH(0), LL(0), RR(0), SS(0);
MyBar = Barinterval;
MyTick = ticks;
HH = getappinfo(aihighestdispvalue);
LL = getappinfo(ailowestdispvalue);
RR = getappinfo(airightdispdatetime);
SS = getappinfo(aileftdispdatetime);
value1 = (HH - LL)/100;
value2 = (RR - SS)/100;
countdown = MyBar - Mytick;
text_delete(value3);
value3 = Text_new_dt(RR - (TXT.Position.oriz*value2), HH - (TXT.Position.vert*value1), " "+ numtostr(countdown,0)+" ");
text_setcolor(value3, TXT.color);
text_setsize(value3, TXT.dimension);
text_setbgcolor(value3, TXT.Background);
text_setborder(value3,true);
if near.close = true then
Text_setlocation_dt(value3, (datetime-(txt.position.oriz*0.000694444444)), close + (txt.position.vert*(minmove/pricescale)));
Code: Select all
inputs:
TXT.dimension(22),
TXT.color(black),
TXT.Background(yellow),
TXT.Position.Vert(10),
TXT.Position.Oriz(10),
Near.close(false);
vars:
Mytick(0),
MyBar(0), countdown(0),
HH(0), LL(0), RR(0), SS(0);
MyBar = Barinterval;
MyTick = [b]Volume;[/b]
HH = getappinfo(aihighestdispvalue);
LL = getappinfo(ailowestdispvalue);
RR = getappinfo(airightdispdatetime);
SS = getappinfo(aileftdispdatetime);
value1 = (HH - LL)/100;
value2 = (RR - SS)/100;
countdown = MyBar - Mytick;
text_delete(value3);
value3 = Text_new_dt(RR - (TXT.Position.oriz*value2), HH - (TXT.Position.vert*value1), " "+ numtostr(countdown,0)+" ");
text_setcolor(value3, TXT.color);
text_setsize(value3, TXT.dimension);
text_setbgcolor(value3, TXT.Background);
text_setborder(value3,true);
if near.close = true then
Text_setlocation_dt(value3, (datetime-(txt.position.oriz*0.000694444444)), close + (txt.position.vert*(minmove/pricescale)));
any idea for a solution ??
thx