is there a day variable for today's trading day......2016-08-03
or for whatever day you run a backtest?
print 'Test date:\t%s' % service.time_to_string(service.system_time, '%Y-%m-%d')
service.system_time provides the timestamp from unix epoch, using that you can calculate the test date.
service.system_time
https://app.cloudquant.com/application/#/glossary/151 has more information on the built in function that will convert the timestamp to your requested format. Also,
todays_date = service.time_to_string(service.system_time, '%Y-%m-%d')
Comments
print 'Test date:\t%s' % service.time_to_string(service.system_time, '%Y-%m-%d')
service.system_time
provides the timestamp from unix epoch, using that you can calculate the test date.https://app.cloudquant.com/application/#/glossary/151 has more information on the built in function that will convert the timestamp to your requested format. Also,
todays_date = service.time_to_string(service.system_time, '%Y-%m-%d')