Moderator: admin
local font;
function Prepare()
...
font = core.host:execute("createFont", "Verdana", 10, false, false);
...
if TR[1] >TR[2] then
core.host:execute ("drawLabel", 1, source:date(source:size()-1) + 3*size , MAX + 2*(MAX-MIN)/5, "TR "..tostring( round( TR[1]* M,0)).. " (+)" );
elseif TR[1] < TR[2] then
core.host:execute ("drawLabel", 1, source:date(source:size()-1) + 3*size , MAX + 2*(MAX-MIN)/5, "TR "..tostring( round( TR[1]* M,0)) .." (-)" );
else
core.host:execute ("drawLabel", 1, source:date(source:size()-1) + 3*size , MAX + 2*(MAX-MIN)/5, "TR "..tostring( round( TR[1]* M,0)) .." (0)" );
end
Users browsing this forum: No registered users and 194 guests