Hi all!
What is the simplest way to display an internal runtime variables of the strategy? Is the only way is to use special indicator and interop between indicator and strategy?
Moderator: admin
core.host:trace("Add a message here.");
function ExtTrace(message)
local theDate = core.dateToTable(core.host:execute("convertTime", 1, 4, math.max(instance.bid:date(instance.bid:size() - 1), instance.ask:date(instance.ask:size() - 1))));
core.host:trace(string.format("%d/%02d/%02d %02d:%02d:%02d ", theDate.year, theDate.month, theDate.day, theDate.hour, theDate.min, theDate.sec) .. " " .. message);
end
Users browsing this forum: No registered users and 11 guests