Page 1 of 1

Error

PostPosted: Tue Dec 13, 2016 2:31 pm
by sho-me-pips
I get this error. Here is the error and function below. Causes the strategy to stop, was working good last time I used this.

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/XXXXXXXX.lua:449: bad argument #2 to '?' (no value) 12/13/2016 13:36:44

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))));
Line 449--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

Re: Error

PostPosted: Sun Dec 18, 2016 11:56 am
by Apprentice
Can you provide strategy code?

Re: Error

PostPosted: Sun Dec 18, 2016 12:17 pm
by sho-me-pips
Thank you Apprentice for replying.

I should have re-posted that I located the problem in the code.