The getNextTradingDay function looks like it could be fun to use but when I use the code below I get an error "Invalid Date Arguent in getNextTradingDay" message. Thank you for taking a look at the problem.
function main()
{
var ttime = getValue("time");
if (ttime == null)
{
return;
}
var next_trade_day = getNextTradingDay(ttime);
if (next_trade_day == null)
{
debugPrint(next_trade_day+"\n");
}
}
function main()
{
var ttime = getValue("time");
if (ttime == null)
{
return;
}
var next_trade_day = getNextTradingDay(ttime);
if (next_trade_day == null)
{
debugPrint(next_trade_day+"\n");
}
}
Comment