Is there a way to return the time without the date? I tried service.time_to_string(service.system_time, '%I:%M:%S') as collected data attached to an entry order, but it doesn't display the same value that is in the default EntryTime in backtesting.
Try: service.time_to_string(service.system_time, '%H:%M:%S')
service.time_to_string(service.system_time, '%H:%M:%S')
If you would like microseconds:
service.time_to_string(service.system_time, '%H:%M:%S.%f')
Note: service.system_time is in Eastern.
service.system_time
Comments
Try:
service.time_to_string(service.system_time, '%H:%M:%S')
If you would like microseconds:
service.time_to_string(service.system_time, '%H:%M:%S.%f')
Note:
service.system_time
is in Eastern.