So you are saying if I have to implement variable text into the code, then it is necessary to implement numtostr-functions into your
text(....) proposal ?
With all respect your note :
If you assign to a variable a Text statement as High_Txt(""), it must be already a text.
With this trick, using Text(numtostr(valueA, decimals)) you force the code the get the right implementation.
in my experience is wrong.
It is not necessary that
high_txt("") is already a text, because
var : high_txt("") already defined it as text. Therefore we have this
numtostr-function, which able us to transform numerical values into string.
I'm always working like this :
var: txtr1("")
var: min1rid(-1);
txtr1=" minHExp. "+numtostr(....,autodecimals)+" > "+numtostr(....,autodecimals);
if min1rid<0 then begin
min1rid=text_new(date,time,....,txtr1);
text_setstyle(min1rid,0,2);
text_setcolor(min1rid,text_color);
text_setsize(min1rid,text_size);
end
else
begin
text_setstring(min1rid,txtr1);
text_setlocation(min1rid,date,calctime(time+(2*barinterval),1),....);
text_setcolor(min1rid,text_color);
text_setsize(min1rid,text_size);
end;
May your style to define it is working well, but with my way I get the same result. I will test your way tomorrow in real-time and will check for any improvements system wise.
Thanks a lot.
Regards.
Mike